Skip Navigation

[Resolved] WooCommerce archive order and Views sorting controls

This thread is resolved. Here is a description of the problem and solution.

Problem:
The user would like to order the WooCommercearchive template in several fields, including the price.

Solution:
Make sure that the default WooCommerce order is disabled in Toolset->WooCommerce Views->Frontend Sorting. Check this screenshot http://prntscr.com/uizqgf

This support ticket is created 4 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 4 replies, has 2 voices.

Last updated by umbertoZ 4 years, 2 months ago.

Assisted by: Jamal.

Author
Posts
#1780027

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

#1780253

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.

#1780331

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"]

New threads created by Jamal and linked to this one are listed below:

https://toolset.com/forums/topic/woocommerce-archive-order-on-price-not-working/

#1780339

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.

#1780399

My issue is resolved now. Thank you!