JuDrYa Posted June 17, 2014 Share Posted June 17, 2014 Para poner correctamente el formato de moneda con su punto en los millares y la coma en los decimales.Para el FRONT-OFFICE (tienda)En el archivo "classes/Tools.php" sobre la linea 507...Sustituir esto... /* 0 000,00 X*/ case 2: $ret = number_format($price, $c_decimals, ',', ' ').$blank.$c_char; break; por esto... /* 0.000,00 X*/ case 2: $ret = number_format($price, $c_decimals, ',', '.').$blank.$c_char; break; Para el BACK-OFFICE (administración)En el archivo "controllers/admin/AdminCurrenciesController.php" sobre la linea 147...Sustituir esto... array('key' => 1, 'name' => 'X0,000.00 ('.$this->l('Such as with Dollars').')'), array('key' => 2, 'name' => '0 000,00X ('.$this->l('Such as with Euros').')'), array('key' => 3, 'name' => 'X0.000,00'), array('key' => 4, 'name' => '0,000.00X'), array('key' => 5, 'name' => 'X0\'000.00') // Added for the switzerland currency por esto... array('key' => 1, 'name' => 'X0,000.00 ('.$this->l('Such as with Dollars').')'), array('key' => 2, 'name' => '0.000,00X ('.$this->l('Such as with Euros').')'), array('key' => 3, 'name' => 'X0.000,00'), array('key' => 4, 'name' => '0,000.00X'), array('key' => 5, 'name' => 'X0\'000.00') // Added for the switzerland currency 1 Link to comment Share on other sites More sharing options...
Recommended Posts