Show products with same tags on product page

New Member
3 0 0

I wish to be able to group products with tags and have products from the same group/tag shown on the product page.

 

For instance I have 3 products of the same type. I have added the same tag to all of the "serie_pillow".

 

So on product page A I wish to also have shown product B and product C - more or less as related products but controlled by tags.

 

Anyone who can help me figure this out? 

0 Likes
Shopify Partner
436 83 95

Hello 

{% for product in collection.products %}
{% if product.tags contains "serie_pillow" %}
<a href="{{ product.url }}">{{ product.title }}</a>
 //  And your other code
{% endif %}
{% endfor %}

Want to modify or custom changes on store hire me.
My Email: guleriathakur43@gmail.com
Skype: navrocks1
If helpful then please Like and Accept Solution.
If you are happy and want to donate small Click here (Its my paypal)
0 Likes
New Member
3 0 0

Thanks, but will it be possible to have it more dynamically so it not only is for the specific tag "serie_pillow" but for all tags starting with "serie_" for other products/groups?

0 Likes
Shopify Partner
436 83 95

Yes possible, have to customize code according to need.
Thanks

Want to modify or custom changes on store hire me.
My Email: guleriathakur43@gmail.com
Skype: navrocks1
If helpful then please Like and Accept Solution.
If you are happy and want to donate small Click here (Its my paypal)
0 Likes