Currency symbol displayed incorrectly

9 replies [Last post]
sakadava
Offline
Joined: 09/16/2009
Status: 
Answered

Hi,

 

I'm using Membership Suite version 6.x-6.1. My currency is Pounds Sterling (i.e. GBP). The pound symbol is displayed incorrectly on webpages and in e-mail messages.

 

I noticed ms_core/ms_core.module line 2031:

  1. case 'GBP': return $pos_sign .'£'. $f_amount;

Perhaps this ought to use the ISO-8859-1 symbol?

  1. case 'GBP': return $pos_sign .'£'. $f_amount;

This seemed to do the trick for me but please advise if there is a more appropriate way to deal with this, pending a fix rolled into the release. Possibly other currencies exhibit this behaviour too?

 

Simon

 

PS. I noticed the sign-up e-mail has the subscription value as £0.00 - I'm assuming this is an artifact of using the PayPal sandbox - has this been your experience?

sakadava
Offline
Joined: 09/16/2009
The attachment shows the

The attachment shows the appearance of the pound symbol on the webpage and in the sign-up e-mail.

 

Simon

AttachmentSize
pound-symbol.png 5.05 KB
Leighton Whiting
Online
Joined: 06/02/2009
Sakadava, Thanks for letting

Sakadava,
Thanks for letting me know about this, I will be rolling out a fix in Membership Suite 6.2. The way I did it was adding the htmlentities() encoding to the symbols, which fixed it for me.

Sincerely,
Leighton Whiting

shaharcoh
Offline
Joined: 09/02/2010
euro sign appears wrong

Hi there,

I used euro as my currency, when logged in on My account -> Memebership the euro sign appears as € instead of the actual sign, see attached screenshot

thanks

Shahar

AttachmentSize
Picture 15.png 35.78 KB
Leighton Whiting
Online
Joined: 06/02/2009
The euro sign is now fixed.

The euro sign is now fixed. :)

Sincerely,
Leighton Whiting

Abilnet
Offline
Joined: 12/07/2009
In my opinion, there should

In my opinion, there should also be a setting, where to print the currency sign... ie. before or after the monetary value. As far as I've seen, currency sign is at the moment hard coded before the value (which is wrong at least here in Europe)

Leighton Whiting
Online
Joined: 06/02/2009
You're right, I'll add that

You're right, I'll add that to the settings in MS Core.

Sincerely,
Leighton Whiting

Abilnet
Offline
Joined: 12/07/2009
Thanks Leighton, very much

Thanks Leighton, very much appreciated!

Leighton Whiting
Online
Joined: 06/02/2009
I've added a new setting in

I've added a new setting in MS Core Settings that will let you define a template to use when formatting money. You can use the [sign], [number] and [decimal] tokens to format your money strings. See screenshot for example. This way, you can specify whether to use a . or a , for the separator, and you can put the sign before or after the number. You can even hard-code in the correct sign if it isn't working.

Sincerely,
Leighton Whiting

AttachmentSize
new_money_format.PNG 25.28 KB
Abilnet
Offline
Joined: 12/07/2009
Thanks Leighton, you're the

Thanks Leighton, you're the best!

Twitter Feed