I set the currency for the ecommerce module to NZD in the mysite/_config.php file, but it's still showing up as USD:
http://kitchenselections.com/products/
Is there somewhere else I need to change the currency?
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.
Moderators: martimiz, Nicolaas, Sean, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba
I set the currency for the ecommerce module to NZD in the mysite/_config.php file, but it's still showing up as USD:
http://kitchenselections.com/products/
Is there somewhere else I need to change the currency?
You should have:
Payment::set_site_currency('NZD');
Change that, and the currency shown after the price changes. It should work, so check yopu're changing the right file, and it's uploaded to the right place etc. e.g. change the currency symbol to ! and see if that change shows up.
To set the symbol before the price, you should also have:
Currency::setCurrencySymbol('$');
While we're on the subject, Europeans note that to get a non-ascii currency symbol such as the UK pound sign, try saving the _config.php file in UTF-8 format.
By the way, what versions of SilverStripe & ecommerce are you using?
Thank you, I figured it out in the end - just a case of formatting.
I'm using the latest versions of both Silverstripe and ecommerce
Thanks for this information.
However, on the Checkout page, the total is still showing with the "$" symbol, despite every other currency symbol showing correctly. Whereabout can this be changed?
Hi,
I'm having the same problem.
Added the following to mysite\_config.php and saved the file using UTF-8
Payment::set_site_currency('GBP');
Currency::setCurrencySymbol('£');
But the Total amount still shows as $
I haven't ever seen the ecommerce module before, but a suggestion: Did you check the template files or the source code to see if the dollar sign is being hard-coded somewhere?
That's my guess too. I've looked, but can't find it.