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.

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.

Archive /

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

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

eCommerce Problem


Go to End


3 Posts   1988 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, 5523 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, 110 Posts

19 August 2008 at 3:01am