Search form in woocommerce shop redirect to ordinary page search

Posted in: Newspaper
Post count: 3

Hi,

When i search something in woocommerce searchform in shop, then the results shows in ordinary search.php page, instead of shop page.

When i search by category or post type, there is no problem, and the results shows on shop page:
https://example.com/?s=&product_cat=0&post_type=product

But, when i add a keyword to search, then whole results shows on simple search results page:
https://example.com/?s=something&product_cat=0&post_type=product

I want to show search results, even with keyword, on shop page
How can i solved this?

Post count: 20688

Hi,

That would happen, the search will be in general not just for woocommerce related products and items. I don’t think the woocommerce plugin has a search template, maybe woocommerce themes have, can’t say for sure. Could be more information online about it.
You could use the woocommerce search widget instead
https://docs.woocommerce.com/document/woocommerce-product-search/

Thanks

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.