Skip Navigation

[Resolved] Filter View of Products by price ranges and free ranking

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

Problem: I would like to filter a View of Products by price ranges like "More Expensive" and "Less Expensive", and by a free ranking system.

Solution: Toolset offers a price range filter that allows the User to select a minimum and maximum price, but there is no built-in filter for arbitrary price groups. You could create a custom field instead and use that as a filter, or write custom code that automatically sets that value when you save a Product.

A free ranking system can be accomplished with a select custom field.

This support ticket is created 6 years, 4 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.

Our next available supporter will start replying to tickets in about 1.85 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 6 replies, has 2 voices.

Last updated by ThierryR232 6 years, 4 months ago.

Assisted by: Christian Cox.

Author
Posts
#916271
Perles de cultures – Massilia Diamant.png

Hello,

I want displaying a drop down menu with a price filer but i want only "more expensive" or "less expensive".

Other thing, how i can displaying (with a drop down menu) a free ranking ?

Thx

#916328

I want displaying a drop down menu with a price filer but i want only "more expensive" or "less expensive".
The easiest way to do this is to create a custom field for Products with options "more expensive" and "less expensive". If you only have a few Products, you can easily set this custom field value manually by editing the Products in wp-admin. If you have more than a few Products, or you add or edit Products regularly, then you could set up some automatic code that sets the appropriate value based on the Product price, and trigger that code using the save_post API or the cred_save_data API if you create Products using Toolset Forms. If you tell me more about Products and your site I can provide some more assistance with this.

Other thing, how i can displaying (with a drop down menu) a free ranking ?
Sorry I'm not clear what this means. Is this just a select field with options like 1, 2, 3, 4, and 5? Please provide some more details.

#916763

Thanks for your answer Christian, I misspoke.

I want displaying a drop down menu with a price filer but i want only "more expensive" or "less expensive"

In fact if it's possible, i want the same thing on woocommerce : a field "from the most expensive to the least expensive" and "from the cheapest to the most expensive".

Other thing, how i can displaying (with a drop down menu) a free ranking ?

For example, on my drop down menu i have " VS2 / SI2 / VVS2" how i can displaying " SI2 / VVS2 / VS2" ?

Thnkas for your help.

#917136
field-1.png
field-2.png
field-3.png
order.png

I want displaying a drop down menu with a price filer but i want only "more expensive" or "less expensive"
This type of price filter does not exist, but you can create a custom field that has two options, like a select field or a radio field. Assign this field to the Products post type. The field is not based on the actual price, you must assign a value when you create or edit a Product. Then add this filter to a custom search View. See field-1.png, field-2.png, field-3.png.

For example, on my drop down menu i have " VS2 / SI2 / VVS2" how i can displaying " SI2 / VVS2 / VS2" ?
I'm still not sure I understand. You can drag and drop the options of a select field in the custom field editor to change the order of the options in the filter. See order.png. Is this what you're looking for? If not, I need more information, maybe a screenshot will help me understand?

#917553

Thanks Christian, the free rankink works 🙂

For the price i have a lot of products, now i have a drop down menu with 80 value, there isn't possibily for have a clean ranking ?

Thanks again.

#917641
Screen Shot 2018-06-25 at 3.23.05 PM.png
Screen Shot 2018-06-25 at 3.23.14 PM.png

now i have a drop down menu with 80 value, there isn't possibily for have a clean ranking ?
There is no easy way to create a price filter with options like "Less Expensive", or "More Expensive", or predefined ranges like "0-20", "20-30", and "30+". Those custom Price filters will require custom code. There is a Price range filter provided in Views. Use the "between" operator to allow two inputs - Price min and Price max. See the attachments.

The only other way I can think of to accomplish this is to use a custom field, like I described before.

#918302

Ok i understand. Thanks Christian 🙂