• Charlie

    (@charliemariephoto)


    Hi!

    I’ve checked with WooCommerce and they’ve referred me to you, but it may be my theme, not sure!

    Basically your plugin was working great until I installed a WooCommerce to sell a few products. Now, when I search for blog posts, it brings up my empty shop catalogue advising no search results.

    It’s almost like WooCommerce has taken over the search plugin feature. I’ve tried on a staging site deactivating Woocommerce and your plugin then works fine.

    For this reason I went to WooCommerce, but they’re advising the plugin conflict may be at your end?

    Essentially what was happening – without WC:
    Someone searches for a keyword, which brings up search results of blog posts as expected. The keyword in question for example being ‘replenish’. I noticed at the end of the url, it has the following string:
    /?s=replenish

    Now with WC:
    Someone searches for the same keyword, instead they get a product search result page with zero results, and this at the end of the url:
    /?s=replenish&post_type=product

    Any ideas? Not sure if it’s Relevanssi, WC or my Flatsome theme…

    Thank you!

    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)

    That &post_type=product is a post type restriction that limits the search to just products. The reason this is happening is Flatsome: WooCommerce themes tend to do this on the search.

    Your search form code has this:

    <input type="hidden" name="post_type" value="product">

    This is what adds the post type restriction. This needs to go, if you want the search results page to show more than products. Your site is likely using the “Product Search” widget from Flatsome. Switch that to the plain “Search” widget.

    Thread Starter Charlie

    (@charliemariephoto)

    Ok thank you! It’s not an obvious fix from what I can see as they only seem to have one kind of search button to choose from in their customisation. But it’s looking clearer the issue lies with Flatsome so I’ll reach out to them!

    Thanks so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘After installing WooCommerce, the search function brings up zero results’ is closed to new replies.