Skip Navigation

[Resolved] sorting results per price from smaller to larget price

This support ticket is created 6 years 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 4 replies, has 2 voices.

Last updated by giorgosK 6 years ago.

Assisted by: Nigel.

Author
Posts
#1192028

Tell us what you are trying to do? sort per price the results

Is there any documentation that you are following? some ticket threads from your site

Is there a similar example that we can see? the table results in the website hidden link

What is the link to your site? hidden link

#1192077

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screenshot 2019-01-28 at 14.54.16.png

If you have a View that lists products, then you can set the initial order directly in the View settings (see screenshot).

You can also add front-end order controls so that users can modify the sort order (including direction).

That is described here: https://toolset.com/documentation/user-guides/allowing-visitors-to-sort-the-front-end-results/

Note that in my screenshot I am ordering using a special custom field that effectively copies the WooCommerce price. You can read about why (and how) here: https://toolset.com/documentation/user-guides/woocommerce-views-calculated-fields-and-batch-update/

#1192297

i found why im not getting the price shorting i need

as you can see and test in the search form of the home page hidden link we want the customer to just type the tyre code example 1557013.
We have put this code number in many product titles along with each product additional info example 1. nexen 1557013 rd 2. nexen 1557013 da 3. symitomo 1557013 ss 4. falkent 1557013 dd.

we would like the price shorting to involve all products having the code number but the search result takes data also from the other product title informartion so it handles each product as unique or groups similar product title thus showing the price results in groups.

this causes the final price sorting result to appear as not continuous .

how can i make the search result take into concideration only the number of each product title and not the other title information?

thank you

#1192298

but again since i set the results to be in Products ordered by Field - views_woo_price, descending

hidden link

hidden link

shouldnt the results be in price descending order despite the product title?

#1192501

My issue is resolved now. Thank you!