Inconsistent currency conversions

tbone1
New Member
3 0 0

Hello, 

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: 

https://samuelandstone.com/collections/diamonds?nonav

https://samuelandstone.com/collections/diamonds/products/oval-diamond-398?nonav

Switch to AUD. The first diamond here is: 

OVAL, 0.80, H, VS1, DFC, $2,613.90
 
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
 
 
0 Likes
CANDISOFT
Shopify Partner
985 142 447
you should try Bold multicurrency app.
For Contact : candisoft100@gmail.com
Want to customize Shopify storefront? Check the PageFly app
75,000+ Active Shopify merchants. TOP5 best Shopify Apps.
0 Likes
tbone1
New Member
3 0 0

Ok, I set up a test site: https://samuelandstonedev.myshopify.com/collections/all (pass: vowseg)

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. 

So now I need to replace the shopify currency conversion javascript with bold currency conversion. I found this, and it works for getting cart prices correct: https://support.boldcommerce.com/hc/en-us/articles/360044339852-Using-AJAX-Themes-with-Custom-Pricin...

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.

0 Likes
CANDISOFT
Shopify Partner
985 142 447

@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.

For Contact : candisoft100@gmail.com
Want to customize Shopify storefront? Check the PageFly app
75,000+ Active Shopify merchants. TOP5 best Shopify Apps.
0 Likes