ccc

Prestashop Smarty: Incluir código PHP en plantillas TPL

 En el prestashop modificar el fichero:
config/smarty.config.inc.php:

#require_once(_PS_SMARTY_DIR_.'Smarty.class.php');
require_once(_PS_SMARTY_DIR_.'SmartyBC.class.php');
 ...
#$smarty = new SmartyCustom();
$smarty = new SmartyBC();

Y ya en cualquier TPL para escribir php:

{php}
...
{/php}

No hay comentarios:

Publicar un comentario