Forums › Forums › Search & Filter Pro › Using custom Woocommerce archive-product.php template
- This topic has 12 replies, 2 voices, and was last updated 5 years, 1 month ago by Trevor.
-
Anonymous(Private) November 17, 2019 at 8:38 pm #226892
Hello,
I would like to use a custom Woocommerce archive-product.php template to display search results for Woocommerce products(the same way I did for WordPress posts).
I created a search form for products and tried the following display results setup: https://www.screencast.com/t/LK7nMY6mdYG
But when I launch the search it retrieves no product.
The search form works well when I use Display results method: “Woocommerce shop”.
Thanks,
Nicolas
Anonymous(Private) November 19, 2019 at 5:45 pm #227058I have created dedicated pages to test these search forms: for example this one: http://test.hautlescours.fr/non-classe/woocommerce-shop/
Is it useful for you?
Trevor(Private) November 20, 2019 at 10:04 am #227110The form on that page points to http://test.hautlescours.fr/recherches/
The form is set to ‘Custom’ method, but how is it linked to the results? I see no results grid on that page?
Trevor(Private) November 21, 2019 at 6:12 pm #227260OK, but you need it to keep and display the results on this page, and not go to the shop page, yes?
I could not find the archive-product.php template file in the them or child theme folder? Is your shop page using the one in the WooCommerce plugin folder?
I am think that, if you are using the As an Archive display results method, you may need to copy that file and give it a new name, and put that in the child theme main folder.
-
AuthorPosts