From 70663c991b602270e1386f4ef5d9a1f8bd97fed7 Mon Sep 17 00:00:00 2001 From: Shreesh Arora Date: Fri, 21 Jun 2024 14:46:09 +0530 Subject: [PATCH] fixed: decimal should only shown when currency decimal values are enabled --- admin/themes/default/template/controllers/orders/form.tpl | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/themes/default/template/controllers/orders/form.tpl b/admin/themes/default/template/controllers/orders/form.tpl index 259afcfd4..3cd980765 100644 --- a/admin/themes/default/template/controllers/orders/form.tpl +++ b/admin/themes/default/template/controllers/orders/form.tpl @@ -1171,6 +1171,7 @@ currency_format = jsonSummary.currency.format; currency_sign = jsonSummary.currency.sign; currency_blank = jsonSummary.currency.blank; + priceDisplayPrecision = parseInt(jsonSummary.currency.decimals) ? {$smarty.const._PS_PRICE_DISPLAY_PRECISION_|intval} : 0; updateCartProducts(jsonSummary.summary.products, jsonSummary.summary.gift_products, jsonSummary.cart.id_address_delivery); updateCartVouchers(jsonSummary.summary.discounts);