[-] BO : BugFix : #PSCFV-2798 : Multistore : BUG on the "modify products page" with another shop device
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user