Search results based on tag words

CDitty
Tourist
8 0 1

I am trying to use tags for special categorizing.  I added the tag word to the {% if item.object_type == 'product, tag' %} section.  I now get the items tagged in the search results but the results are now showing 0 results returned for every search including product name.  I'm at a loss on how to fix this.  Anyone have any suggestions? 

I made the changes in the search.liquid file.  

0 Likes
LitExtension
Shopify Partner
1207 154 215

Hi @CDitty

This is my suggestion for your question. 

You should change {% if item.object_type == 'product, tag' %}  to {% if item.object_type == 'product' %} and {% if item.object_type == 'tag' %}

You can try this and feel free to let me know if you need further support.

Hope this helps! 

LitExtension - Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Are you looking for a solution to migrate to Shopify? Contact us for further assistance.
Try our FREE DEMO now!
0 Likes