Hello there,
I have an issue with displaying {{ variant.weight }}. I’ve created a small section with custom liquid on my product page. There, I loop through the available variants and attempt to show the weight per variant. At the moment it only shows the weight of the first variant.
Here’s the code that I’ve used.
{% if product.variants.size > 1 %}
**Weight per variant:**
{% for variant in product.variants %}
{% endfor %}
| {{ variant.title }}: | {{ variant.weight | weight_with_unit }} |
| - | - |
{% endif %}
Any help would be greatly appreciated!
