2004 Posts in 533 Topics by 435 members
E-Commerce Modules
SilverStripe Forums » E-Commerce Modules » E-Commerce 0.6 beta 1 released
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
| Go to End | Next > | |
| Author | Topic: | 16786 Views |
-
Re: E-Commerce 0.6 beta 1 released

25 June 2009 at 9:06pm
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.
-
Re: E-Commerce 0.6 beta 1 released

25 June 2009 at 9:55pm
Thanks Andriod! Can't wait for the bugs in this extension to be ironed out.. great work so far guys
-
Re: E-Commerce 0.6 beta 1 released

25 June 2009 at 10:57pm
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. -
Re: E-Commerce 0.6 beta 1 released

27 June 2009 at 3:19am
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
-
Re: E-Commerce 0.6 beta 1 released

28 June 2009 at 11:01pm
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)
-
Re: E-Commerce 0.6 beta 1 released

29 June 2009 at 12:56pm
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. -
Re: E-Commerce 0.6 beta 1 released

29 June 2009 at 11:19pm
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() -
Re: E-Commerce 0.6 beta 1 released

8 July 2009 at 11:58pm Last edited: 9 July 2009 3:15pm
Nevermind my problem is fixed but I would say that you install instructions definatly need updating.
| 16786 Views | ||
| Go to Top | Next > |

