products-only search yields non-product results

Shopify Partner
37 0 2

even with the   <input type="hidden" name="type" value="product"> tag, our search yields non-product pages in the results. what am I missing?

http://shivarose.myshopify.com/search?q=oil

thanks

0 Likes
Highlighted
Shopify Staff
Shopify Staff
20 0 4

Hey Pirco,

Zack here, one of Shopify's employees! I changed where the "<input type="hidden" name="type" value="product">" tag was added (from Line 162 to Line 170), and that seems to have rectified things. The React Theme is a little bit different from the Theme that the guide describes, and I thought that adding the code just above the closing </form> tag ought to do the trick.

And it did! I added spaces before and after where I added the code in, so you can see it easily :)

All the Best,
-Zack

0 Likes
Shopify Partner
37 0 2

alright! I'll try to remember THAT. :-)

 

thank you!

0 Likes