WooCommerce Product Search redirecting to home page after search submit

Hi,

After I click enter on my shop page search (https://tmsedm.co.uk/products/) it redirects me to https://tmsedm.co.uk/ with the search query on the end of the url.

Why is this happening? Am I missing a setting?

Many thanks

3 Responses to WooCommerce Product Search redirecting to home page after search submit

  1. Denitsa May 23, 2019 at 1:17 pm #

    Hello,
    I tried searching on the page you linked to and can confirm that this is the correct search behaviour. The search uses AJAX to load the results dynamically (without the need to reload the page), hence the parameters in the URL.
    I also noticed that you’re using a different search in your top search box on the main page and I’d recommend utilising WooCommerce product search there too, since that one throws a JS error in the console. You’d need to enable the Replace the standard product search form option on the WooCommerce > Settings > Search page.
    Here’s the documentation page on how to integrate the search with your theme, in case you happen to stumble upon any issues -> https://docs.woocommerce.com/document/woocommerce-product-search/themes/
    Let me know if this helps!
    Cheers,
    Denitsa

    • Hamish May 23, 2019 at 1:24 pm #

      Hi,

      If its using AJAX should it be changing the products on that page when I start typing? As this doesn’t happen either.

      I don’t have the replace the standard product search form option on the WooCommerce > Settings > Search page. I just have Search Weights.

      I have removed the other search plugin.

      Many thanks

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share