Available in store only

Solved
Highlighted
New Member
3 0 0

I am using the supply theme

 

I am using this workaround to have products displayed that are available in my physical store only.

 

{% if product.tags contains 'in-store' %}
<div>Available in store only</div>
{% else %}
Normal code that displays price in formation
{% endif %}
 
 
It works on my product page
 
It works on my collection list page
 
But it won't work on my search result page
 
Anybody can help
I am in the file

snipets/search-result-grid.liquid
 
 
 
 
0 Likes

Success.

Astronaut
1129 150 297

Search is using item as a keyword instead of product. Try:

 

{% if item.tags contains 'in-store' %}

 

If my solution helped you, please like and accept as solution!
If you'd like to make any edits to your store, please send me a personal message and we can discuss what you'd like to accomplish :D
1 Like