Greetings!
I’m currently working on a layout for WooCommerce Archive for use as Shop page. I have installed the Search Element in a section at the top of the page to allow product searches. The search returns on what appears to be blog format with products, pages, and posts as results.
What I want to happen, is just search products, returning only products, and displaying them on the Archive Layout.
I currently have both woocommerce search widgit in the sidebar of the layout, along with the search element at the top of the page. When I use the sidebar search, it returns only products (with &post_type=product as the end of the URL). When using the Search element, I get the pages, posts and products (without the &post_type=product as part of the URL).
If a get the results back from the Search element, and manually add &post_type=product to the end of the results URL in the address bar of the browser, the page refreshes using the Layout for the Woocommerce archive.
Is there a way to have the search element perform the same as the woocommerce search widgit in the sidebar? Or maybe a way of adding the &post_type=product to the end of the url before it is returned? Or is there a way to put the woocommerce widigt on place of the search element and be able to style it?