1999 Posts in 530 Topics by 433 members
E-Commerce Modules
SilverStripe Forums » E-Commerce Modules » Setting Currency - no ecommerc module
Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.
Moderators: martimiz, Nicolaas, Howard, Sean, Ryan M., biapar, Willr, Ingo, Jedateach, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 1117 Views |
-
Setting Currency - no ecommerc module

26 April 2010 at 10:21pm Last edited: 26 April 2010 10:22pm
How can i set the currency to pounds instead of USdollars for the website?
I am not using the ecommerce module for mysite, but have a currency field.
HousePage.php extract****
***************************
class HousePage extends Page {
static $db = array(
"numeric_price" => 'Currency'
);
}my template page has $numeric_price.Whole
my php page is called HousePage.php
version: SilverStripe-v2.3.6
-
Re: Setting Currency - no ecommerc module

26 April 2010 at 10:28pm
I think i've fixed it
Saphire >core>model>fieldtypes Currency.php
line 9: protected static $currencySymbol = '$';
changed to
line 9: protected static $currencySymbol = '£';
-
Re: Setting Currency - no ecommerc module

2 May 2010 at 8:13pm
... and in config.php under mysite, you add:
Order::set_site_currency("Eur");
| 1117 Views | ||
|
Page:
1
|
Go to Top |

