• Resolved Nicu Danciu

    (@nicu-danciu)


    Hi,
    I know it’s a simple issue, I also believe that you’ve already answer to this question”:
    “Search products” does not function on my website http://www.papercupslates.co.uk.
    When I search a product, it returns me either the entire Shop page or “No products were found matching your selection.”
    I believe I’ve setup something wrong, but…what?
    I also installed Relenanssi search plugin, but the results are the same.

Viewing 15 replies - 1 through 15 (of 17 total)
  • Mikey (a11n)

    (@mikeyarce)

    Hi Nicu,

    I tried to visit your site but it wouldn’t load on my browser. Could you show me a screencast of the problem you are having, and that you are searching for products that do exist in your store? Thanks!

    Thread Starter Nicu Danciu

    (@nicu-danciu)

    Thank you for your reply, Mikey.
    Sorry, I misspelled.
    The site is http://www.papercupsplates.co.uk.

    James Koster

    (@jameskoster)

    Try deactivating any other plugins you’ve installed to check for a conflict. The search form in the header just uses the standard WooCommerce Product Search widget so should work fine.

    Thread Starter Nicu Danciu

    (@nicu-danciu)

    The Search from the Header does not work. The Search widget from the sidebar works perfect.
    The strange thing is that when I write a search term on the sidebar search widget…it instantly appears also on the header search.
    I don’t care where from that search widget is, I just want to have a functional search widget on the header.

    So, is there a way to put that working Search widget also in the Header?

    Thread Starter Nicu Danciu

    (@nicu-danciu)

    There is also a small Search icon on the right side of My Profile icon, when I’m logged on. This also works perfect as a product search widget. Interesting.

    The search works fine for me? It returns products exactly as I’d expect it to.

    The search in your sidebar is a standard search widget (not a product search widget) so it will return posts / pages.

    Thread Starter Nicu Danciu

    (@nicu-danciu)

    Thank you JamesKoster
    Yes, you are right again.
    But that “standard serch widget” leads directly to the product page. For eaxample, if you search for “meal” it will return all “meal boxes” and nothing else. I would like to have the same widget on the header, if it is possible.
    I’ve noticed that I could place that “standard search” bellow header, but it looks bad, it is stretched along the entire page and has a too big padding.
    I’m sorry I bother you with this problem, but i think that search widget works better for me.
    Thank you.

    Hey,

    Easiest way to do this would be to redeclare the storefront_product_search() function.

    function storefront_product_search() { ?>
    			<div class="site-search">
    				<?php the_widget( 'WP_Widget_Search', 'title=' ); ?>
    			</div>
    		<?php
    		}
    	}

    Cheers!

    Thread Starter Nicu Danciu

    (@nicu-danciu)

    Sorry, but I cannot find where that function is initialy declared. It looks I’m missing something.

    That doesn’t matter, you just need to redeclare it by pasting the code from my previous post in to your functions.php file πŸ™‚

    Thread Starter Nicu Danciu

    (@nicu-danciu)

    Parse error: syntax error, unexpected ‘}’ in /home/papercup/public_html/wp-content/themes/storefront/functions.php on line 45

    That’s when I add it in functions.php

    Thread Starter Nicu Danciu

    (@nicu-danciu)

    ok. Now I managed to break all. Nohing functions anymore, just the same parse error, site does not functions anymore.

    Thread Starter Nicu Danciu

    (@nicu-danciu)

    Hey, I mean it: the site does not function anymore, even in admin mode!!!!!!

    Thread Starter Nicu Danciu

    (@nicu-danciu)

    http://www.papercupsplates.co.uk/wp-admin/
    The result is Parse error: syntax error, unexpected ‘}’ in /home/papercup/public_html/wp-content/themes/storefront/functions.php on line 45

    I mean it, this is not a joke!!!!!!

    Thread Starter Nicu Danciu

    (@nicu-danciu)

    Ok, I’ve manage to solve it.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘"Serach products" does not function on my website’ is closed to new replies.