hello everyone,
I needed to create a separate page for each product variation and link them. I did this with the meta tags and a piece of code (which I pasted below). Everything works (example of work here https://ciberpanda.myshopify.com/products/case-for-iphone-11-pro-genuine-saffiano-full-leather-personalised-letters), but now i need to show related products in the dropdown menu
{% if product.tags contains "len-iphone" %}
{% assign current_product_tag = "len-iphone" %}
{% elsif product.tags contains "len-genuine-saffiano-full-leather" %}
{% assign current_product_tag = "len-genuine-saffiano-full-leather" %}
{% elsif product.tags contains "len-pebbled-leather-with-holding-strap" %}
{% assign current_product_tag = "len-pebbled-leather-with-holding-strap" %}
{% endif %}
{% assign current_product = product %}
Сhoose model
{% for product in collections.all.products %}
{% if product.tags contains current_product_tag %}
- {{ product.metafields.my_fields.product_model }}
{% endif %}
{% endfor %}