Shopify themes, liquid, logos, and UX
I would like to create Metafield data (shipping information) that would only apply to specific countries. I would like this to appear on our Product pages. Is there a way to show/hide Metafield content based upon the built-in Currency selection? As an example, if the Currency selector is set to USD the content would appear, but if it is selected to EUR it would not?
I could then create multiple Metafields to show different shipping information for USD vs. EUR.
Thank you in advance.
Hello @koryb841 ,
Yes possible, try to check what you will get with this variable
{{ currency }}
I think it will return USD when UDS is elected and Euro when EUR selected.
Now based on this you can build your logic to display metafields based on currency.
If problem solved don't forget to Like it and Mark it as Solution!
And if you need help with customization/code part you can contact me for services
You can find the email in the signature below.
Thanks
Hi @koryb841
You can achieve this using a simple if condition in your product.liquid file
Something like this
{% if current_currency == "USD" %}
{{ product.metafields.custom.shipping_info }}
{% endif %}
I am not sure that the exact code work so just try it if id worked for you otherwise if you can charge you collaboration code I will be happy to help you
-If this solution helps you, kindly LIKE THIS REPLY and MARK AS A SOLUTION OR
-If you need an expert Shopify developer for customization and development, feel free to contact me.
Email: Mehran.ali5300@gmail.com
WhatsApp: +92 343 0211536
Hi @koryb841 ,
You can implement this by validating the market id and write code which will check appropriate metafield value.
Hope this will helps...
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025