• Is it possible to DISABLE AJAX for the search function? Using ajax means we can’t share URLs for search-results on social media. I don’t really see any benefit to ajax in this case. What’s the harm in reloading the page?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support jaysupport

    (@jaysupport)

    Hi t,

    There is no option to disable the AJAX search. Since version 5.0.0, you can indeed add a URL parameter to load a specific search, it would look like:

    https://www.your-site.com/catalog-page/?prod_name=bike

    Just add the prod_name parameter to your catalog page URL and then put the search term after the equals sign.

    There is no such parameter/option in version 4. However, if you wanted to stick on version 4, an alternative would be to create a category that has all the products that you want to be included for a specific search term, and then to use the category URL parameter for your linking. Like so:

    https://www.your-site.com/catalog-page/?categories=12

    Where 12 is the ID of the category.

    Thread Starter htz77

    (@tzeldin88)

    Thank you!

    You’re right, if I can specify a search-query in the url, then it’s fine to use ajax. Great to know that’s possible in v5. And I do plan to update to v5, once I work out the conflict it has with Oxygen.

    Since I can’t test this myself quite yet.. may I ask:
    ?prod_name is what, a specific product’s name/title?
    Will this work as well for a category, like ?category=

    Plugin Support jaysupport

    (@jaysupport)

    Hello T,

    prod_name is just the parameter used to load the search result. Any value accepted in the search box can be used with that parameter. What’s accepted is based on what you have selected for “Product Search” in the Basic area of the settings page.

    You can see it in action on our demo page here: https://www.etoilewebdesign.com/ultimate-product-catalogue-demo/

    When you do a search, it automatically adds/updates the URL parameter.

    If you, for example, go directly to the following link/URL: https://www.etoilewebdesign.com/ultimate-product-catalogue-demo/?prod_name=solitaire, you’ll see that it returns the four results that have the word “solitaire” in their description.

    The same goes for the categories parameter (it’s “categories”, not “category”). If you link directly to the catalog page with the categories parameter in the URL, it will pre-filter the catalog to show only that category/those categories.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable ajax for search?’ is closed to new replies.