diff --git a/admin-dev/themes/default/template/controllers/orders/form.tpl b/admin-dev/themes/default/template/controllers/orders/form.tpl
index 34a5d7cec..6e4597092 100755
--- a/admin-dev/themes/default/template/controllers/orders/form.tpl
+++ b/admin-dev/themes/default/template/controllers/orders/form.tpl
@@ -656,11 +656,11 @@
var id_product = Number(this.id_product);
var id_product_attribute = Number(this.id_product_attribute);
cart_quantity[Number(this.id_product)+'_'+Number(this.id_product_attribute)+'_'+Number(this.id_customization)] = this.cart_quantity;
- cart_content += '
 | '+this.name+' '+this.attributes_small+' | '+this.reference+' | | ';
+ cart_content += ' |
 | '+this.name+' '+this.attributes_small+' | '+this.reference+' | | ';
cart_content += (!this.id_customization ? '' : '');
cart_content += (!this.id_customization ? '' : '');
- cart_content += ' | ' + formatCurrency(parseFloat(this.total.replace(',', '.')), currency_format, currency_sign, currency_blank) + ' |
';
+ cart_content += '' + formatCurrency(this.numeric_total, currency_format, currency_sign, currency_blank) + ' | ';
if (this.id_customization && this.id_customization != 0)
{
diff --git a/controllers/admin/AdminCartsController.php b/controllers/admin/AdminCartsController.php
index 309c37e40..517934d9a 100755
--- a/controllers/admin/AdminCartsController.php
+++ b/controllers/admin/AdminCartsController.php
@@ -551,6 +551,8 @@ class AdminCartsControllerCore extends AdminController
if (count($summary['products']))
foreach ($summary['products'] as &$product)
{
+ $product['numeric_price'] = $product['price'];
+ $product['numeric_total'] = $product['total'];
$product['price'] = str_replace($currency->sign, '', Tools::displayPrice($product['price'], $currency));
$product['total'] = str_replace($currency->sign, '', Tools::displayPrice($product['total'], $currency));
$product['image_link'] = $this->context->link->getImageLink($product['link_rewrite'], $product['id_image'], 'small_default');
diff --git a/js/tools.js b/js/tools.js
index 4da024b8c..276eaf27c 100644
--- a/js/tools.js
+++ b/js/tools.js
@@ -73,7 +73,7 @@ function formatCurrency(price, currencyFormat, currencySign, currencyBlank)
if (currencyFormat == 4)
return (formatNumber(price, priceDisplayPrecision, ',', '.') + blank + currencySign);
if (currencyFormat == 5)
- return (formatNumber(price, priceDisplayPrecision, ' ', '.') + blank + currencySign);
+ return (currencySign + blank + formatNumber(price, priceDisplayPrecision, '\'', '.'));
return price;
}
diff --git a/themes/default/js/tools.js b/themes/default/js/tools.js
index 4215f7a88..7b670168c 100644
--- a/themes/default/js/tools.js
+++ b/themes/default/js/tools.js
@@ -95,7 +95,7 @@ function formatCurrency(price, currencyFormat, currencySign, currencyBlank)
if (currencyFormat == 4)
return (formatNumber(price, priceDisplayPrecision, ',', '.') + blank + currencySign);
if (currencyFormat == 5)
- return (formatNumber(price, priceDisplayPrecision, ' ', '.') + blank + currencySign);
+ return (currencySign + blank + formatNumber(price, priceDisplayPrecision, '\'', '.'));
return price;
}