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...
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024