I found the method in payment so Payment::set_site_currency("GBP"); works but this doesn't change the $ symbol to £. Prices will show as $15.00 (GBP) I haven't been able to find where to change that.
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
E-Commerce 0.6 beta 1 released
- Previous 10 entries
- 1
- 2
- Page 33(current)
- 4
- 5
- 6
- 7
- …
- 14
- Next 10 entries
Thanks Andriod! Can't wait for the bugs in this extension to be ironed out.. great work so far guys
Well spotted, I guess that was moved to payment. Not a bug really although you'd want currency displayed in the catalogue too so perhaps it makes sense to make it a wider, regional setting.
as for the pound sign (don't have one on my keyboard any more) I recall seeing that asked somewhere before, I'll see if I can find it.
I'm keen to try this with 2.3.2-stable so might have a play this weekend.
to set the currency symbol just throw this into your /ecommerce/_config.php
Currency::setCurrencySymbol('€');
and use the html code for the symbol you want
example is for EURO
Using :
Payment::set_site_currency("GBP");
Currency::setCurrencySymbol('£');
changes USD -> GBP and $ -> £ on most pages, but not all areas on the checkout page (see attached "Amount" at the bottom)
That was what I was getting at when I said it should be set with a wider scope.
CurrencySymbol() belongs to ecommerce module and set_site_currency() is Payment module - I don't have the stand-alone payment module installed so can't see it currencySymbol has been implemented there as well.
Also..
inside the Checkout page there's a hidden form field "Amount" that is vulnerable to people changing the value of the order total (i.e. in Firebug)
and the fix for the bug I posted previously is....
----
sapphire/core/model/fieldtypes/Currency.php - ADD :
static function getCurrencySymbol() {
return self::$currencySymbol;
}
code/forms/OrderForm.php:70
change '$' to Currency::getCurrencySymbol()
Nevermind my problem is fixed but I would say that you install instructions definatly need updating.
- Previous 10 entries
- 1
- 2
- Page 33(current)
- 4
- 5
- 6
- 7
- …
- 14
- Next 10 entries