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.

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, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Setting Currency - no ecommerc module


3 Posts   1263 Views


26 April 2010 at 10:21pm (Last edited: 26 April 2010 10:22pm), Community Member, 95 Posts

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


26 April 2010 at 10:28pm Community Member, 95 Posts

I think i've fixed it

Saphire >core>model>fieldtypes Currency.php

line 9: protected static $currencySymbol = '$';

changed to

line 9: protected static $currencySymbol = '£';


2 May 2010 at 8:13pm Forum Moderator, 435 Posts

... and in config.php under mysite, you add: