View Full Version : Price table show's a comma instead of a dot
Hi,
First of all i'd like to say congratulations on developing this whois script. It's very good.
I ssem to have a problem in my Price Table that is displayed once the user search's a domain, the prices seem to show a comma instead of a dot e.g $5,00 instead of showing $5.00.
Where can i sort this problem?
Patrick
07-31-2009, 01:46 AM
The formatting of currency values in the price table and script in general are set with the currency setting in the admin panel under "Buy Mode Settings".
Sorry, should have said that its the eu currency that is displaying the comma. Not the us doller.
The more information on currency format in the "Buy Mode Settings" shows:
How do I configure the price format option?
The price format of Buy Mode Settings can accept many different values.
Acceptable formats are:
us - Will display 9.95 as $9.95
uk - Will display 9.95 as £9.95
eu - Will display 9.95 as €9,95
It seems that these setting only accept the comma for eu.
I have now changed a code in the global.php this:
case "eu": $converted_string = "€".number_format($number, 2, ",",".");
changed to:
case "eu": $converted_string = "€".number_format($number, 2);
Problem sorted
Patrick
07-31-2009, 11:12 AM
You did not need to do that. The more recent versions fix custom currency.
You could have just used the following as your currency format and not modified any code:
custom:€:2:.:,Click "More Information" links in the panel next to items for detailed information regarding the setting.
Powered by vBulletin™ Version 4.0.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.