Skip Navigation

[Resolved] Custom search by RANGE (like price in e-commerce) but for a custom field: AGE

This support ticket is created 6 years, 7 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 3 replies, has 2 voices.

Last updated by Shane 6 years, 7 months ago.

Assisted by: Shane.

Author
Posts
#912946

Hi !

I need to replicate the famous "price range" e-commerce filter, for a field that rapresent "AGE".
This means that I want to set both minimum and maximum AGE and filter the compatible games in my Toolset database.

Is it possible ?

Thank you !

#913105

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Actually this is possible.

When you're adding the filter for age, just select BETWEEN as the comparison and it should generate 2 filters, one filter for minimum and the other for maximum.

Please let me know if this helps.
Thanks,
Shane

#913363

Ok,
and what about the frontend ?

Will the "between" filter appear automatically ?

#913476

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Yes once between is selected for the comparison both filters will appear on the frontend when you are displaying the parametric search view.

Thanks,
Shane