Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

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.

E-Commerce Modules /

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

How to set currency etc.


Go to End


2 Posts   2987 Views

Avatar
therich

Community Member, 2 Posts

9 January 2009 at 11:02pm

I just installed ecommerce-v0.5.2, and it seems to work well. Now, where can I set the currency, tax stuff etc?

Avatar
jmdweb

Community Member, 14 Posts

10 January 2009 at 9:03am

Hi there,
you can change the currency into most regions, you can find the codes in /code/DPSPayment.php

* Supported currencies:
* CAD Canadian Dollar
* CHF Swiss Franc
* EUR Euro
* FRF French Franc
* GBP United Kingdom Pound
* HKD Hong Kong Dollar
* JPY Japanese Yen
* NZD New Zealand Dollar
* SGD Singapore Dollar
* USD United States Dollar
* ZAR Rand
* AUD Australian Dollar
* WST Samoan Tala
* VUV Vanuatu Vatu
* TOP Tongan Pa'anga
* SBD Solomon Islands Dollar
* PGK Papua New Guinea Kina
* MYR Malaysian Ringgit
* KWD Kuwaiti Dinar
* FJD Fiji Dollar
*/

You can change the Currency using one of the Currency code above then change file /code/Order.php

Line 102 (apprx)

/**
* Currency used in orders
*/
protected static $site_currency = "GBP";

That should do it.

Oh and I'm sure this has been covered so do a little searching on the forums before posting :)