• Resolved boriskamp1991

    (@boriskamp1991)


    Hi guys!

    Im almost done coding my tailored WooCommerce webshop.
    One of the small things left to do is the search results page, I have no idea what template it is using right now but it looks like crap.

    How can I make it use the archive-product.php template?

    Thank!

    https://www.ads-software.com/plugins/woocommerce/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    Ensure your search form appends &post_type=product to the URL, like our WC search widget does.

    Thread Starter boriskamp1991

    (@boriskamp1991)

    Awersome!!
    thanks for letting me know Mike!

    I got stuck on how to add this to the url though, any ideas?

    Thread Starter boriskamp1991

    (@boriskamp1991)

    Nevermind!

    I looked at product-searchform.php and adjusted my own so that it appends.
    ended up adding this input field:
    ‘<input type=”hidden” name=”post_type” value=”product” />`

    Thanks Mike!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Search results’ is closed to new replies.