From e42046fed7ed6b4ee6370b50108cb395b0453d2b Mon Sep 17 00:00:00 2001 From: Hans Bakker Date: Thu, 26 May 2022 09:08:50 +0700 Subject: [PATCH] dynamic currencies --- template/store/category.html.ftl | 4 ++-- template/store/home.html.ftl | 8 ++++---- template/store/product.html.ftl | 6 +++--- template/store/search.html.ftl | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/template/store/category.html.ftl b/template/store/category.html.ftl index de71aa12..3ebe17af 100644 --- a/template/store/category.html.ftl +++ b/template/store/category.html.ftl @@ -68,9 +68,9 @@ -->
- $${localProd.price} + ${ec.l10n.formatCurrency(localProd.price,localProd.priceUomId)} <#if localProd.listPrice??> - $${localProd.listPrice} + ${ec.l10n.formatCurrency(localProd.listPrice, localProd.priceUomId)}
diff --git a/template/store/home.html.ftl b/template/store/home.html.ftl index 0c5fb3e4..7a8f99bd 100644 --- a/template/store/home.html.ftl +++ b/template/store/home.html.ftl @@ -64,10 +64,10 @@
- $${product.price} + ${ec.l10n.formatCurrency(product.price,product.priceUomId)} <#if product.listPrice??> - $${product.listPrice} + ${ec.l10n.formatCurrency(product.listPrice,product.priceUomId)}
@@ -131,10 +131,10 @@
- $${product.price} + ${ec.l10n.formatCurrency(product.price,product.priceUomId)} <#if product.listPrice??> - $${product.listPrice} + ${ec.l10n.formatCurrency(product.listPrice, product.priceUomId)}
diff --git a/template/store/product.html.ftl b/template/store/product.html.ftl index 1007f8e1..fcd2f65a 100644 --- a/template/store/product.html.ftl +++ b/template/store/product.html.ftl @@ -74,17 +74,17 @@ <#if product.listPrice??> SAVE - $${(product.listPrice - product.price)?string(",##0.00")} + ${ec.l10n.formatCurrency((product.listPrice - product.price)?string(",##0.00"), product.priceUomId)}

- ${product.price} + ${ec.l10n.formatCurrency(product.price, product.priceUomId)} <#if product.listPrice??> was - ${product.listPrice} + ${ec.l10n.formatCurrency(product.listPrice, product.priceUomId)}

diff --git a/template/store/search.html.ftl b/template/store/search.html.ftl index e29d081a..5d431569 100644 --- a/template/store/search.html.ftl +++ b/template/store/search.html.ftl @@ -70,9 +70,9 @@ productListPageRangeHigh = productSearchResults.productListPageRangeHigh> -->
- $${localProd.price} + ${ec.l10n.formatCurrency(localProd.price, product.priceUomId)} <#if localProd.listPrice??> - $${localProd.listPrice} + ${ec.l10n.formatCurrency(localProd.listPrice, product.priceUomId)}