在Prestashop 1.5上回退到Smarty2

在Prestashop 1.5上回退到Smarty2,smarty,prestashop,Smarty,Prestashop,在Prestashop 1.5中是否有办法使用smarty2而不是smarty3?我已经从1.2.5版更新了,主题被破坏了。谢谢,也许可以试试Smarty的向后兼容功能 在文件“/config/smarty.config.inc.php”中,替换: require_once(_PS_SMARTY_DIR_.'Smarty.class.php'); global $smarty; $smarty = new Smarty(); 借 没有帮助。尝试修复所有包含的内容,但现在我收到了其他错误,如“{

在Prestashop 1.5中是否有办法使用smarty2而不是smarty3?我已经从1.2.5版更新了,主题被破坏了。谢谢,也许可以试试Smarty的向后兼容功能

在文件“/config/smarty.config.inc.php”中,替换:

require_once(_PS_SMARTY_DIR_.'Smarty.class.php');
global $smarty;
$smarty = new Smarty();


没有帮助。尝试修复所有包含的内容,但现在我收到了其他错误,如
“{assign var=imageIds value=
$product id
-
$image.id\u image
}”
您可以共享模板名称及其内容吗?Smarty3中有很多更改,我不知道这些更改的向后兼容层。显然,@VitKos可以手动升级所有模板文件,但我认为最初的问题是一个有用的问题:某种方法可以强制新应用程序使用旧的Smarty。
require_once(_PS_SMARTY_DIR_.'SmartyBC.class.php');
global $smarty;
$smarty = new SmartyBC();