View Single Post
  #2  
Old 01-12-2011, 12:23 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: How to make all Smarty tags global?

You should enable "Parse Smarty tags in the content of embedded static pages" option.

Second, you should assign the necessary variables via PHP to access them in Smarty.

e.g. to be able to use login on static pages you should add:
PHP Code:
$smarty->assign("login"$login); 
before call to func_display function in the pages.php script.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote