WooCommerce product category sorting not working
- This topic is empty.
-
AuthorPosts
-
October 2, 2023 at 11:51 pm #8369LaurenGuest
guys, 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 #8370KathleenGuestseems 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 #8371GeraldGuestCustomizer >> WooCommerce >> Product Catalog
change the default sorting there.
October 3, 2023 at 12:05 am #8372RobertGuestit 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 #8373NancyGuestWC is bloated af, gets worse and worse
October 3, 2023 at 1:29 am #8375JeanGuesthttps://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 #8376PatrickGuestplease 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 #8380AaronGuestI 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 #8553AlanGuestit 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 #8670SamuelGuestTHAT SNIPPET WORKS 😃
December 4, 2023 at 7:47 am #10093December 23, 2023 at 2:55 am #10701RoyGuestIf 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 #10702SaraGuest@Roy you should start a new topic
-
AuthorPosts
- You must be logged in to reply to this topic.