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

2 problems i have with E-Commerce 0.6 beta 1


Reply

3 Posts   830 Views

Avatar
Webdoc

20 February 2010 at 2:34pm (Last edited: 20 February 2010 2:44pm), Community Member, 332 Posts

1. The translation is not working
if i use the translatable code below:

i18n::enable();
global $allowed_i18n;
$allowed_i18n = array('et' => "et_EE", 'ru' => "ru_RU");
Object::add_extension('SiteTree', 'Translatable');
Translatable::set_default_locale('et_EE');
i18n::set_locale('et_EE');
Payment::set_site_currency("EEK"); // change this to the relevant currency code
Currency::setCurrencySymbol(' '); // change this to the relevant symbol
Order::set_modifiers(array('TaxModifier'));
TaxModifier::set_for_country("EE", 0.200, "KM", "inclusive");

2. The currency symbol in checkoutpage in amount is always $
also if i use the code:
Currency::setCurrencySymbol(' ');

The et_EE.php is included in ecommerce code originaly.

How to fix those two problems

Avatar
Webdoc

21 February 2010 at 9:12am Community Member, 332 Posts

can someone help me with that

Avatar
Krisavi

23 March 2010 at 2:11pm Community Member, 2 Posts

Hello, well here should be 2 links where you can get fix for both

http://www.silverstripe.org/e-commerce-module-forum/show/280127#post280127
http://www.silverstripe.org/e-commerce-module-forum/show/262686?start=16#post263585

Good Luck (või siis soovin edu parandamisega :) )