• Resolved pintillo86

    (@pintillo86)


    Hello Mikko Saari,

    First of all, thank you for this great plugin, I love it.

    So this is my situation if you make a search on the home page it works perfectly fine, once you are in the catalogue page the search skips the search results page and renders the product page directly (If the search is a single product, if its a variable product, it won’t do anything) And if you are in a product page and make search it will return an empty page.

    On the other hand I have a development site (Which is an exacto copy of the production site) And searching works perfect all over the site.

    I’m using Oxygen builder with oxygen repeaters.

    I have already done the First two steps of the “Debugging Relevanssi searching issues” guide.

    1. The admin search works fine.
    2. When Look at the parameters Relevanssi is getting, I get results on my home page, but when trying it on a product page, it prints absolutely nothing.

    Any ideas on what could be happening here?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mikko Saari

    (@msaari)

    The search results page is skipped because WooCommerce has a feature where searches that match a single product are automatically redirected to the product page. Could that be involved? Try disabling that:

    add_filter( 'woocommerce_redirect_single_search_result', '__return_false' );

    On the catalogue pages, the search takes you to the wrong URL, because your search form has the wrong action. The action is #, when it should be / or your top level domain name. See if this helps.

    Thread Starter pintillo86

    (@pintillo86)

    Thank you, thank you, thank you!

    I have disabled the woocomerce redirect and have changed the search action and problems solved.

    Both things worked like a charm!

    Many Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Search not working on product pages (Production site)’ is closed to new replies.