Search for: Log In Free Support [Resolved] Override the default search template and use woocommerce archive-product.php Home › Forums › Support › Override the default search template and use woocommerce archive-product.php This topic has 7 replies, 4 voices, and was last updated 6 months, 3 weeks ago by Tom. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts August 6, 2020 at 7:00 am #1389414 David Hi, how can I override the default GeneratePress search template and use WooCommerce archive-product.php template? I want to make search results look like categories archive pages. Thank you. August 6, 2020 at 8:48 am #1389707 LeoStaff Customer Support Hi there, Try this PHP snippet: https://docs.generatepress.com/article/generate_navigation_search_output/#woocommerce-products Adding PHP: https://docs.generatepress.com/article/adding-php/ Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ August 6, 2020 at 4:46 pm #1390385 David This only adds &post_type=product to GET request. So my URL after search contains .../?s=whattosearch&product_type=product but I need to change the whole layout of search results page and make it look products categories archives. August 7, 2020 at 6:00 am #1391266 DavidStaff Customer Support Hi there, instead of using the Search Widget – use the Product Search Widget. Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ August 7, 2020 at 9:03 am #1391715 David Hi, thanks for your replies. π This is what we are currently getting: Link And I need to make it look like this: Link August 7, 2020 at 12:59 pm #1392058 TomLead Developer Lead Developer Hi there, You may have a plugin or custom function preventing the default functionality. For example, here’s one of our Site Library sites: https://gpsites.co/merch/?s=ninja&post_type=product Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Ongoing Development: https://generatepress.com/ongoing-development August 12, 2020 at 8:51 am #1399187 David Hello, thank you Tom! It was caused by Disable Blog plugin (https://wordpress.org/plugins/disable-blog/). Have a nice day. August 12, 2020 at 1:55 pm #1399670 TomLead Developer Lead Developer Glad you found the issue! Thanks for letting us know π Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Ongoing Development: https://generatepress.com/ongoing-development Author Posts Viewing 8 posts - 1 through 8 (of 8 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In