[-] BO : BugFix : #PSCFV-2798 : Multistore : BUG on the "modify products page" with another shop device

This commit is contained in:
vChabot
2012-06-13 13:23:52 +00:00
parent bc5409ceda
commit 4e781d680e
6 changed files with 47 additions and 8 deletions
+6
View File
@@ -70,6 +70,7 @@ smartyRegisterFunction($smarty, 'function', 'p', 'smartyShowObject'); // Debug o
smartyRegisterFunction($smarty, 'function', 'd', 'smartyDieObject'); // Debug only
smartyRegisterFunction($smarty, 'function', 'l', 'smartyTranslate', false);
smartyRegisterFunction($smarty, 'function', 'hook', 'smartyHook');
smartyRegisterFunction($smarty, 'function', 'toolsConvertPrice', 'toolsConvertPrice');
smartyRegisterFunction($smarty, 'function', 'dateFormat', array('Tools', 'dateFormat'));
smartyRegisterFunction($smarty, 'function', 'convertPrice', array('Product', 'convertPrice'));
@@ -188,6 +189,11 @@ function smartyHook($params, &$smarty)
}
}
function toolsConvertPrice($params, &$smarty)
{
return Tools::convertPrice($params['price'], Context::getContext()->currency);
}
/**
* Used to delay loading of external classes with smarty->register_plugin
*/