Hi, I've Toolset and WooCommerce installed. I've created a custom Archive for product-category.
I've added the sorting controls, but it doesn't work, the archive page always reload the default WooCommerce order.
I tested with "Update the Views results without reloading the page" and "Reload the page to update the View results", I've added:
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
But I got the same result.
Any idea?
thanks
Hello and thank you for contacting the Toolset support.
Please check if you are not activating the default WooCommerce order in Toolset settings in Toolset->WooCommerce Views->Frontend Sorting. Check this screenshot hidden link
If this does not help, please check if this issue appears when:
- Only Toolset plugins are activated. It will tell us if there is an interaction issue with another plugin.
- The theme is set to a WordPress default like Twenty Fourteen. It will tell us if there is an interaction issue with your theme.
If the problem disappears, start activating one at the time to track where the incompatibility is produced.
Let me know what you will get.
Hey, thank you! The Frontend Sorting setting was the problem.
Now sorting is working well by title (A-Z/Z-A) and by date (Newest/Oldest), but it is still giving a weird result by woo_price. It is not ordering correctly.
This is the shortcode of my View:
[wpv-sort-orderby type="select" options="post_date,post_title,field-views_woo_price" label_for_post_date="Newest" label_for_post_title="A to Z" label_for_field-views_woo_price="Price" orderby_ascending_for="post_date,post_title,field-views_woo_price"]
[wpv-sort-order type="radio" options="asc,desc" label_for_asc="Ascending" label_for_desc="Descending" label_asc_for_post_date="Older first" label_desc_for_post_date="Newer first" label_asc_for_post_title="A to Z" label_desc_for_post_title="Z to A" label_asc_for_field-views_woo_price="Low to high" label_desc_for_field-views_woo_price="High to low"]
Awesome, I am glad we could find out what was interfering with the view order. To check the issue with the pricing order, I'll need to take a closer look at your view.
However, for support rules, we are able to handle only one issue at the time. This helps us to bring you a better service and also helps other users to find all the information here exposed. For that reason, I have created another ticket and I would like to handle this issue on it.
Please mark this ticket as resolved and provide login credentials on that other ticket.
My issue is resolved now. Thank you!