Shopify themes, liquid, logos, and UX
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?
Hello digitalist,
{% for product in collection.products %} {% if product.tags contains "serie_pillow" %} <a href="{{ product.url }}">{{ product.title }}</a> // And your other code {% endif %} {% endfor %}
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?
Yes possible, have to customize code according to need.
Thanks
This is only for the products with the single tag
{% for tag in product.tags %} {% assign singleTag = tag %} {% endfor %} {% for product in collection.products %} {% if product.tags contains singleTag %} {{ product.title }} {% endif %} {% endfor %}
There's an app that does product-product navigation based on tags. It shows your tags on product pages. You may find it useful
https://apps.shopify.com/product-tag-image
User | RANK |
---|---|
142 | |
110 | |
79 | |
64 | |
63 |
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023