Display products with certain tag in a customized page template

maggiescene
Tourist
6 0 1
Hello, I created a new page template and I wanna show the products with the tag 'flash'.
 
I tried this line of code:
 
{% for tag in product.tags %}
{% if tag contains 'flash' %}
<!-- some line of code --!>
{% endif %}
{% endfor %}
 
But it doesn't work.
 
Could anyone help me? Very much appreciated.
KetanKumar
Shopify Partner
18754 1970 6940

@maggiescene 

https://shopify-support.krownthemes.com/article/443-how-to-add-new-product-badges

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes