WooCommerce product category sorting not working
- This topic is empty.
-
AuthorPosts
-
October 2, 2023 at 11:51 pm #8369
Lauren
Guestguys, I had this problem recently.
https://wordpress.org/support/topic/product-sorting-order-is-not-working-correct/
seems the Woo guys refused to answer and closed this thread. I don’t know why because many people are seeing this problem come back for many times already.
you choose “sort by latest” and nothing happens!
October 2, 2023 at 11:52 pm #8370Kathleen
Guestseems the sorting is working on the main Shop page and not product category archives, the sorting setting is simply ignored.
October 2, 2023 at 11:54 pm #8371Gerald
GuestCustomizer >> WooCommerce >> Product Catalog
change the default sorting there.
October 3, 2023 at 12:05 am #8372Robert
Guestit doesn’t work. WooCommerce complete ignores it for Category archives. I tried multiple WP themes and all plugins deactivated
October 3, 2023 at 12:12 am #8373Nancy
GuestWC is bloated af, gets worse and worse
October 3, 2023 at 1:29 am #8375Jean
Guesthttps://stackoverflow.com/questions/47627079/sort-products-by-desc-order-in-woocommerce
You might need to manually force this behavior using functions.php snippet
Why? Because WooCommerce, that’s why.
October 3, 2023 at 1:33 am #8376Patrick
Guestplease try it:
https://wpml.org/forums/topic/woocommerce-shop-page-sorting-problem/
Go to Woocommerce > Status > Tools and run the Regenerate Product lookup tables option.
October 3, 2023 at 6:54 pm #8380Aaron
GuestI tried regenerate product lookup tables, it didn’t help me. In the OP thread wp.org link, those people also said the same things.
October 17, 2023 at 11:22 pm #8553Alan
Guestit works kids:
add_filter('woocommerce_get_catalog_ordering_args', 'custom_default_catalog_orderby'); function custom_default_catalog_orderby( $args ) { if(!isset( $_GET['orderby'] ) ) { $args['orderby'] = 'date'; $args['order'] = 'dsc'; return $args; } }
I shared the answer on StackOverflow
October 28, 2023 at 3:49 am #8670Samuel
GuestTHAT SNIPPET WORKS 😃
December 4, 2023 at 7:47 am #10093December 23, 2023 at 2:55 am #10701Roy
GuestIf you have a woocommerce website – check this plugin and enjoy Free Ajax Products Search . https://wordpress.org/plugins/web2application/
December 23, 2023 at 3:29 am #10702Sara
Guest@Roy you should start a new topic
September 2, 2024 at 6:30 am #26374Albert
GuestHi, You can try this plugin here. Easily sort products with various sorting options like Product ID, Name, Date, Price, etc. Rating, Reviews, Sales, and Stock Quantity. It has even a custom sorting orders for categories, subcategories, and tags with drag-and-drop simplicity.
https://extifyplugins.com/product/sort-out-products-for-woocommerce/
Boost sales by organizing products just the way you want, and highlight your best-sellers for maximum impact!
September 2, 2024 at 9:49 am #26377November 14, 2024 at 9:32 am #26932Grace
GuestSort Products for WooCommerce is the perfect solution! You can check it on WooCommerce Official Marketplace here
November 14, 2024 at 9:50 am #26946Ethan
Guestapparently there’s a ton of Woo sorting plugins lol
-
AuthorPosts