• We want to see if we can add filters to our current website/dealer locator that shows that they display a specific product of ours if the user is requesting it (either with putting a logo, or listing that info somewhere) or if there is a way to give preference of a dealer at the top of the list if they do display that specific item in their showroom.

    Basically, add a search query where they choose one of the products we offer when searching for a showroom near them and have those results display either by themselves or at the top of the list of results.

    Can you let me know if this can be done at all?

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    If you want to add a custom dropdown filter, then you will first have to create a custom template. In the template create a custom dropdown with a ‘wpsl-custom-dropdown’ class on it to make sure the values are automatically included.

    Then modify the SQL query with this and this filter to make it use the custom value.

    Then use the wpsl_store_data filter to change the sorting order of the results based on the the set meta field, or sort them by the assigned terms ( if they match with the product names ).

Viewing 1 replies (of 1 total)
  • The topic ‘Adding filters to store locations’ is closed to new replies.