App reviews, troubleshooting, and recommendations
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 != "" %}
<p>{{ size_tag }}</p>
{% 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.
Thank you for your help! However, your code isn’t working.
To clarify, the information is stored in the Category metafields of each product. In Translate & Adapt, translations for these metafields are located at:
.../translate-and-adapt/localize/metaobject
Additionally, I did not create them in the Custom Data settings.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025