We currently use Currency.convert function and it works well across all the themes, I came across an odd site where Currency.convert does not exist, any idea how to ensure Currency.convert is always available? Is there a Shopify JS file we can include?
Hey Kets,
Are there any commonalities on stores which don’t have Currency.convert available? eg: usually custom builds or themes not from the Shopify theme store?
Thanks @Liam-Shopify for the response, based on Shopify.theme
looks its Warehouse theme from the theme store, I have reached out to the merchant asking if they have done some custom built on top of the theme
After further digging it looks like sometimes Currency.convert is available and sometimes it’s not,
If it helps this is the product page where the app’s widget attempts to use the Currency.covnert methods and fails sometimes
If I understand you right, you use a function called Currency.convert
? Can you help me understand how you use it. Maybe attach a screenshot as well?
Hey @geon not sure if I can attach a screenshot, but here is an example on how we use:
Currency.convert(50,'GBP','USD')
and this will convert £50 to USD
There is no Shopify native functionality called Currency.convert
. This might have came from a theme or an app embed