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.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

eCommerce Problem


Reply


3 Posts   1665 Views

Avatar
iculshaw

Community Member, 13 Posts

21 July 2008 at 10:29pm

Edited: 21/07/2008 10:36pm

Hi,

I am trying to implement a new payment gateway into the SVN version of the eCommerce module; that is going fine, the problem I have however is; if i set my default country to for example the UK my currency is still displayed in dollars e.g. $15.00 GBP.

I've scoured the code looking for where the dollar sign could be assigned as it isn't statically placed in the templates e.g. $Total.Nice (n.b. I'm not sure if the .Nice adds the dollar sign as i'm fairly new to this).

I hope someone can help me out

Heres to my first post!

|Foobar1

Avatar
Willr

Forum Moderator, 5513 Posts

22 July 2008 at 1:51pm

checkout the sapphire/fieldtypes/Currency.php file - I believe that adds a $ to the values. Or it might be one of the places..

Avatar
bones

Community Member, 104 Posts

19 August 2008 at 3:01am

This link explains it:

http://silverstripe.com/site-builders-forum/flat/87440