X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to make all Smarty tags global? (https://forum.x-cart.com/showthread.php?t=57419)

Johny1 01-07-2011 01:53 PM

How to make all Smarty tags global?
 
Hi guys,

I want to be able to use ALL smarty tags on any page I want.

Currently I cannot get things like user's membership level and user's address details on embedded static pages.

Thanks

qualiteam 01-12-2011 12:23 AM

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.


All times are GMT -8. The time now is 11:22 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.