I'd like to create a custom result page for WooCommerce product search, but I'm not able to match a layout nor a view with the search string/function (e.g. hidden link). So I tried to create a custom result page for a global search (e.g. hidden link), but all products were listet. I hope that you give me a tutorial or an advice how to create a result page.
The project is still in development. So you have to login, if you want to see, what I tried to explain.
Hope to hear you soon.
Kind regards
Hendrik
Dear Hendrik,
I assume we are talking about Woocommerce shop page, which is a archive page of post type "product", you can try this:
1) Setup a Views wordpress archive for the archive page of post type "product":
https://toolset.com/documentation/user-guides/normal-vs-archive-views/
2) Add custom search form into above Views wordpress archive:
https://toolset.com/documentation/user-guides/front-page-filters/
3) If you need to search string in the post title and content, please check this document
https://toolset.com/documentation/user-guides/filtering-views-for-a-specific-text-string-search/
This is not exactly what I'm looking for. My theme brings a search. As a result, I have a URL hidden link or hidden link.
With hidden link all products are displayed and with hidden link none. So something is wrong and I can't find an error.
I tried it in my localhost with a fresh wordpress installation + Views plugin + Woocommerce plugin + 2017 theme.
Here is what I found
1) URL: hidden link
wordpress standard archive page: search result
You should be able to customize it with Views wordpress archive, see our document:
https://toolset.com/documentation/user-guides/normal-vs-archive-views/
step 2. Choose what kind of archive it is
screenshot:
hidden link
There is an option "Search results", which works for the wordpress search result page.
2) URL : hidden link
It is the woocommerce shop page, which is the archive page of post type, please try as I mentioned above:
https://toolset.com/forums/topic/woocommerce-product-search/#post-565415
If the problem still persists, it might be a compatibility problem, please try this:
deactivate other plugins and switch to wordpress default theme 2017, and test again
We need to know if there is any compatibility problem in your website. thanks