• Hi,

    So I have been asked by my client to replace the search functionality on their website. Instead of results loading in the drop down, they wish for results to . load in new page(like with amazon).

    Can advanced woo search do this? If so How? and if not, any recommendations?

    Thanks
    Dan

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

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter nettlfareham

    (@nettl583586)

    Ok,

    So I have found the setting in Adv Woo Search that allows me to specify that a new page loads with results, when the user hits the enter key – great! The problem is, this loads a blank page.. Whats wrong?

    Thanks
    Dan

    Plugin Author ILLID

    (@mihail-barinov)

    Hello,

    Plugin add search results to your theme product search results page.
    As I see your theme has some problem with product results page.
    For example this page https://www.wonderful-life.co.uk/?s=coll&post_type=product
    also blank.
    So you need to add template for woocommerce products search results to your current theme and this will solve the issue.

    Regards

    Hi ILLID,

    We’ve narrowed this down to the Pro version of the plugin. If we use the free version, everything works as it should.

    With that in mind, taking into account your answer above, is this to do with the layouts which are made available with the Pro version?

    Do we need a specifically named template in our child theme in order to render results correctly? If so, please can you specify which template and it’s requirements and we’ll add it.

    Thank you ??

    Plugin Author ILLID

    (@mihail-barinov)

    Try to find inside your theme folder file
    woocommerce/archive-product.php

    It is the template for products search results. If it is not exist than you need to create it.

    Hi ILLID,

    I’ve copied the archive-product.php file into my child theme > woocommerce folder, but this has had no effect.

    It’s very odd though, as using the free version of the plugin functions fine, and returns the results. But activating the pro version does not. I would assume this has something to do with the theme provided by the pro plugin.

    Is there anything more we can try, anything you can think of which would be breaking with the pro plugin?

    Plugin Author ILLID

    (@mihail-barinov)

    I see that page https://www.wonderful-life.co.uk/?s=coll&post_type=product doesn’t contains any products.
    So can you show me what is inside your archive-product.php file?

    Thanks.

    Hi ILLID,

    Sorry, you misunderstand.

    The pro version of the plugin prevents any product queries from working.

    If I use the free version, the url returns results.

    When the pro version is active, it returns nothing.

    With kindest regards,
    Pax

    Plugin Author ILLID

    (@mihail-barinov)

    So if you now disable pro plugin and go to https://www.wonderful-life.co.uk/?s=coll&post_type=product you will see products there?

    Can you please check this?

    Thanks

    Thread Starter nettlfareham

    (@nettl583586)

    Hi ILLID,

    This link does not return results, even on the free version. This link, however, does https://www.wonderful-life.co.uk/?s=coll&post_type=products. Not sure how we make the search function default to the above URL (have changed ‘product’ to ‘products’).

    Also not happy with products loading in a blog-style page. Would expect the products to appear as they do in the shop (the rest of the website).

    Can you help?

    Thanks
    Dan

    Plugin Author ILLID

    (@mihail-barinov)

    Link https://www.wonderful-life.co.uk/?s=coll&post_type=products is wrong in case that
    you will see standard search results page, not WooCommerce products results page.

    In this link you can replace ‘products’ with any value and will see the same page. For example https://www.wonderful-life.co.uk/?s=coll&post_type=abc

    So one more time – when you disable search plugin and go to https://www.wonderful-life.co.uk/?s=coll&post_type=product do you see any search results?

    If no, than the problem is in your products search results page and you will need to add template for it.

    Regards

    Thread Starter nettlfareham

    (@nettl583586)

    Hi ILLID,

    It appears the following link is working: https://www.wonderful-life.co.uk/?s=coll&post_type=product BUT it displays blog posts still and not products.

    Would this indicate that the problem is with our products search results page? Will we need to add a template for it?

    Thanks
    Dan

    Plugin Author ILLID

    (@mihail-barinov)

    Strange that I see empty page for https://www.wonderful-life.co.uk/?s=coll&post_type=product

    Yes, looks like you need to add template for product search results page.

    Hi ILLID,

    Please forgive the confusion, and disregard the past two comments.

    In answer to your question, yes, when the pro version is disabled, the results return as normal. This is how I determined it to be the pro version which was causing the issue.

    Please can you look into this further. If you need @nettl583586 to run any tests, please direct them at me as I’ll be running tests on a dev site for them ??

    Thank you for your support in resolving this.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘How to make search results load on new page’ is closed to new replies.