We have a site that uses an external API to show diamonds and sync them with the shopify admin. The issue is that there is a major inconsistency between currency conversion in liquid vs javascript. For example:
The diamond data here is all coming from the API (you can check in the network tab) and has a USD price of 2032.5. Using the javascript currency converter window.Currency.convert(2032.5, ‘USD’, ‘AUD’) we receive a certain value. At the time of writing it is 2613.895765681767. This is why the price on the first link is $2613.90.
However when you go into the detail page, the price is converted by shopify backend to $2,678.27. The price in the admin / products section is the same as the price coming from the API. They are both USD 2032.5.
Can anybody explain why this is happening and how to fix this? Thank you
The product has the same price as the example in the original post.
I manually installed the bold multicurrency app and got it working (despite broken instructions re: Liquid error: include usage is not allowed in this context). I need to mess with the CSS in the devtools to see the currency dropdown but it’s there and i can change the currency.
So now that app gives me the following AUD price: $2,636.89 AUD
Still about $40 difference to the shopify javascript conversion.
Now I need to manually convert the prices after they come back from the API, but I can’t find any documentation to do this. I will need to contact bold commerce to see if there is a way.
@tbone1 , if you still have issue with currency conversion after installing bold currency, You can contact Bold Support, they will dive deep into the problem and fix this for you for free.