How to change functionality of search bar in header?

Hi, I'm using WooCommerce with your theme. If I search a product with search bar located in header, I receive results like blog list.
If I search with "Woocommerce Search widget" the results show properly so, how can I change functionality of search bar in header?

I think it could be a good feature to add in your update because it's important for e-commerce.

For example try it in your demo store: http://themes.muffingroup.com/be/store/
Try to search "Woo" in header.

These are the results if I search with search bar in header: http://themes.muffingroup.com/be/store/?s=woo
These are the results if I search with woocommerce search widget (I think this way is most proper)  http://themes.muffingroup.com/be/store/?s=woo&post_type=product


Thank you for your support.

Comments

  • Hi,

    Thank you for your valuable advice we will try to improve the product search results in header search in one of following updates

    Thanks!
  • edited March 2015
    For now I accomplished it. Until you will add this feature in your update, other user can do that by editing this file:

    header-top-area.php

    adding this line before </form>

    <input type="submit" name="post_type" class="submit" value="product" style="display:none;" />

    Have a nice day ;)
  • edited March 2015
    Hi,

    Thanks for sharing!

    Have a nice day ;)
  • edited April 2017
    This is great- thanks for posting the work around. How do I add the search feature to begin with ? I would like to add this search feature in the header, similar to BeStore....thanks
  • You add the search feature in the header by going to theme options>header&subheader>extras and enabling top right bar. THere are also search option there.
  • Hi,

    As per JosephDJV's comments March 2015, I have the same problem (shown below). You mentioned that you would try to improve one of the following updates. Do you know when this will be available? It currently seems to only search the product title and moreover is searching the blog rather than shop, and is certainly not searching the product tags or categories. It needs to be enabled like the woocommerce shop search which includes product titles, descriptions, categories, and tags.

    If it is not to be updated soon, can you please tell me where I find the file header-top-area.php please? I can't seem to find it in the betheme editable php files in order to do the manual workaround that JosephDJV provided. Thanks.

    "Hi, I'm using WooCommerce with your theme. If I search a product with search bar located in header, I receive results like blog list.
    If I search with "Woocommerce Search widget" the results show properly so, how can I change functionality of search bar in header?

    I think it could be a good feature to add in your update because it's important for e-commerce.

    For example try it in your demo store: http://themes.muffingroup.com/be/store/
    Try to search "Woo" in header.

    These are the results if I search with search bar in header: http://themes.muffingroup.com/be/store/?s=woo
    These are the results if I search with woocommerce search widget (I think this way is most proper)  http://themes.muffingroup.com/be/store/?s=woo&post_type=product"
  • We only have to option to find only products in the search fields.
    You can check that in theme options>header&subheader>extras

    We do not have any other options for searching the products, it is the default wordpress search options and you would have to code this manually or use some kind of a plugin.
    thanks
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.