В smarty 3 по умолчаию запрещено выполнение php внутри шаблонов. Но можно вернуть такую возможность, что б тэг {php}{/php} выполнялся. В /includes/classes/vam_template.php поменяйте: require_once (DIR_FS_CATALOG.'includes/external/smarty/Smarty.class.php'); class vamTemplate extends Smarty { на: require_once (DIR_FS_CATALOG.'includes/external/smarty/SmartyBC.class.php'); class vamTemplate extends SmartyBC {