Hi everyone,
I’m trying to add a translation for product sizes in my Shopify store using the “Translate and Adapt” feature. All translations are stored in metaobjects, but I’m unsure how to pull the translated size into my code.
Here’s my current Liquid code:
{% assign size_tag = "" %}
{% for tag in product.tags %}
{% if tag contains "-" and tag contains "(" %}
{% assign size_tag = tag %}
{% endif %}
{% endfor %}
{% if size_tag != "" %}
{{ size_tag }}
{% endif %}
My question is: How can I modify this code to retrieve and display the translated size from the metaobjects? Any help or examples would be greatly appreciated!
Thanks in advance for your support.