From cb67340036841acfd7b752f831b17d3974b76cb8 Mon Sep 17 00:00:00 2001 From: Manuele Menozzi Date: Fri, 22 Dec 2017 12:04:06 +0100 Subject: [PATCH] Uses toLocaleString to properly format price with price_in_ --- design/frontend/template/tracking.phtml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/design/frontend/template/tracking.phtml b/design/frontend/template/tracking.phtml index a314b37..e205219 100644 --- a/design/frontend/template/tracking.phtml +++ b/design/frontend/template/tracking.phtml @@ -5,6 +5,14 @@ $baseCurrencyCode = Mage::app()->getStore()->getBaseCurrencyCode(); $currentCurrencyCode = Mage::app()->getStore()->getCurrentCurrencyCode(); $currentCurrencySymbol = Mage::app()->getLocale()->currency($currentCurrencyCode)->getSymbol(); $rates = Mage::getModel('directory/currency')->getCurrencyRates($baseCurrencyCode, $currentCurrencyCode); +$currentLocale = Mage::app()->getLocale()->getLocaleCode(); +$currentLocaleInStandardFormat = str_replace('_', '-', $currentLocale); +$toLocaleStringOptions = array( + 'minimumFractionDigits' => 2, + 'maximumFractionDigits' => 2, + 'style' => 'currency', + 'currency' => $currentCurrencyCode +); ?>