Skip Navigation

[Resolved] Minimum Price and Maximum Price Range

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

Problem: The price range fields in my form do not appear to be working correctly.

Solution: The price range filter controls are not in sync with the Query Filter, so you must either add the correct Query Filter configuration, or recreate the price range filter controls.

To fix the Query Filter manually, select the price custom field, choose "UNSIGNED" as the data type and "between" as the comparison, then match up the URL parameters for min and max with the values specified in the price range filter controls in the Search and Pagination editor.

To let the GUI fix it for you, delete the price range filter controls from the Search and Pagination editor area. Then recreate them using the buttons above the Search and Pagination editor area. The system will automatically create the corresponding Query Filters.

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
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 4 replies, has 2 voices.

Last updated by CharlesB2907 6 years ago.

Assisted by: Christian Cox.

Author
Posts
#1152355

The price range fields in my form do not appear to be active.

Can someone help me configure and enable them?

#1152708
1-price-filter-controls.png
2-price-query-filters.png
3-add-query-filter.png
4-configure-query-filter.png

I am attaching some screenshots that will help explain what was happening here.
1-price-filter-controls.png shows how the filter controls for min and max price were configured. Notice the two URL parameter attributes - these must be added to the Query Filter for these filter controls to function.
2-price-query-filters.png shows the previous state of the View's Query Filters. Notice that there is no custom field filter for product price - this is why the filters were not appearing to work as expected. It is possible these were deleted by accident, or not added correctly.
3-add-query-filter.png shows the popup after I clicked "Add a Filter" beneath the Query Filter area of the View editor screen. I am choosing WooCommerce Product Price here.
4-configure-query-filter shows the configurations I chose after the previous step. Each input field is important here.
- UNSIGNED is chosen because I want to compare numbers. This is the best selection for comparing numbers.
- between is chosen because I want to test for values between the min and max values provided by the user
- URL parameter is chosen for the min and max values because that's how dynamic search filters work
- The two URL parameter values must match the values from 1-price-filter-controls.png

Now when a User enters 1000 for min and 2000 for max, they are shown results that fit those criteria. Can you confirm the min and max settings are working as expected now? If not, please provide details.

#1152742

I'm not entirely clear on this but, yes, the price fields now appear the be working. Thank you!.

I will continue to process this information I I do believe that all will make sense once the site is finished and I can go back over it and study in detail what went wrong and how it was resolved.

#1153251

Please close this ticket if the filters are working as expected.

#1153261

My issue is resolved now. Thank you!