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.