I just went through the Shopify guide on adding a currency switcher and followed it step by step.
The switcher works however when I go into a product page it reverts back to the AUD price, whilst keeping the 'selected currency' as whatever was picked.
For example I'd like the default display currency to be USD. The home page loads in USD. All products are $34.90USD. Select any product from the home page or the collection page and it switches to $48.99AUD but the switch still shows USD. If you then go to change it, all the prices are messed up. The only way this doesn't happen is if the user changes the price to AUD, then selects the product, once it loads clicks on USD.
Any help will be appreciated. My store is:
Ideally I'd like my payout to be AUD but my display default to be USD. If that's not possible I'll gladly have AUD and AUD with a working switcher. At the moment I've had to pause all my campaigns until this problem is resolved which sucks :(
Thanks in advance.
Solved! Go to the solution
this happens because the original theme code overwrites all prices on product page on load and when variant changes. And it simply outputs the numbers in your shop native currency.
The tutorial code includes fix for this, but it only works for old themes :(
What you should do is open your theme.js (liquid?) Asset look for this code at the bottom of the productPage function:
this.selectors.$shopifyPaymentButton.hide(); } },
and change it like this:
this.selectors.$shopifyPaymentButton.hide(); } Currency.convertAll(shopCurrency, jQuery('[name=currencies]').val()); jQuery('.selected-currency').text(Currency.currentCurrency); },
Make a theme copy, add the code there and send me a preview link. I will try on an iPad tomorrow, do not have an i-device now. It is strange -- I've installed the code from/based on this tutorial on many sites and no one complained yet.
I see you solved your problem. But I suggest you a currency switcher for Shopify store. It's Currency Converter Box.
It's free at all. You can use automatic location conversion for free while other apps make you pay for it.
Sound great? This is the link to install Currency Converter Box