Open cart uses the period "." for a decimal point. Portugal and other locals use the comma ","
I don't think there is any way around this at the moment and unfortunately it would probably involve a LOT of work to change this.
I don't think there is any way around this at the moment and unfortunately it would probably involve a LOT of work to change this.
If you make it idiot proof, they will just build a better idiot.
Thanks for the fast answer,
In fact, i thought the problem was a SQL configuration in Decimal.
I changed, in SQL-Product-decimal the value of 15,4 for 15,2, that correspond to the configuration of Opencart, and it works.
If a fact has to do with the other, i don't know:)..As i told you i'm a novice, i just try ot understand.
The fact is my prices appear now as 2,35 and not as previously 2,00.
Thanks again
Leportos
In fact, i thought the problem was a SQL configuration in Decimal.
I changed, in SQL-Product-decimal the value of 15,4 for 15,2, that correspond to the configuration of Opencart, and it works.
If a fact has to do with the other, i don't know:)..As i told you i'm a novice, i just try ot understand.
The fact is my prices appear now as 2,35 and not as previously 2,00.
Thanks again
Leportos
in the file library/cart/currency.php find the following (line 77 in my opencart version 0.7.7 -> php5)
and replace with
I cant remember what the euro thousand point is, but the thousand point can be changed by changing
$string .= number_format(round($value, $decimal_place), $decimal_place, (($format) ? $this->language->get('decimal_point') : '.'), (($format) ? $this->language->get('thousand_point') : NULL));
to
$string .= number_format(round($value, $decimal_place), $decimal_place, (($format) ? $this->language->get('decimal_point') : '.'), (($format) ? $this->language->get('thousand_point') : '.'));
-Dave
Code: Select all
$string .= number_format(round($value, $decimal_place), $decimal_place, (($format) ? $this->language->get('decimal_point') : '.'), (($format) ? $this->language->get('thousand_point') : NULL));
Code: Select all
$string .= number_format(round($value, $decimal_place), $decimal_place, (($format) ? $this->language->get('decimal_point') : ','), (($format) ? $this->language->get('thousand_point') : NULL));
$string .= number_format(round($value, $decimal_place), $decimal_place, (($format) ? $this->language->get('decimal_point') : '.'), (($format) ? $this->language->get('thousand_point') : NULL));
to
$string .= number_format(round($value, $decimal_place), $decimal_place, (($format) ? $this->language->get('decimal_point') : '.'), (($format) ? $this->language->get('thousand_point') : '.'));
-Dave
Professional Website Services - http://www.davidmgilbert.com/
Active Member
See here http://forum.opencart.com/index.php/topic,857.0.html
I decided to do it properly lol, now you can specify the decimal and thousands seperators in admin and per currency! great for when you sell in both US DOLLARS and EUROS
-Dave
I decided to do it properly lol, now you can specify the decimal and thousands seperators in admin and per currency! great for when you sell in both US DOLLARS and EUROS
-Dave
Professional Website Services - http://www.davidmgilbert.com/
Active Member
Who is online
Users browsing this forum: No registered users and 4 guests