Create Price Range Search With Gravity Forms

Mike Fitzpatrick -


Because the inventory URI's in the CarDealerPress plugin are well thought out and constructed, it is easy to create direct links to filtered inventory. For example, let's say you want to create a link to all the used cars in stock that have a moonroof. You would simply browse out to Used > Cars > tagged with Moonroof, so your URI would look like this: /inventory/Used/?vehicleclass=Car&tags=moon-roof

Let's say you want to do something a little more complicated though, like a price range search. You can do this using a forms tool like GravityForms. Below, we will take you through the steps to make this happen.

Keep in mind that you can do this with any relevant combination of tags and filters in our system. Maybe even a custom RV search.


Step 1: Add two drop downs (can use radio buttons here too). 


Step 2: Adding price values. In each field insert the range that you want to make available for search. In this case, the Search From field is from $1000 up. In the Search To field, you will want to have a value higher than the highest priced vehicle.

You will also need to use the 'show values' preference so you can remove any special characters that you use... for example... '$' and ','. We will use the values field to pass just a basic integer back to the URI in the next step.


Step 3: Change the default confirmation to redirect then merge the search from and search to fields, into the 'Redirect Query String' as shown in this screenshot. Everything in the screenshot that doesn't have {} around it is hard coded, so you will need to type that in exactly as shown. After you add the merge tags, you will need to add the word 'value' inside the merge tag (also shown in screenshot), this will prevent the '$'s and ','s from being passed into the URL as html characters. 




List of available query params

Add custom tags/query params

Have more questions? Submit a request


Powered by Zendesk