Skip Navigation

[Resolved] WooCommerce product search

This support ticket is created 7 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 7 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#565361

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

#565415

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/

#565610

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.

#565715

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