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)
-   -   Using smarty variables in the database stored variables (https://forum.x-cart.com/showthread.php?t=4048)

rubyaryat 08-19-2003 01:20 PM

Using smarty variables in the database stored variables
 
I couldn't find this on the forum, so I'll post this in case any one looks for the answer.

I wanted to have $lng.txt_welcome to contain smarty tags, but when I tried that the tags were display literally instead of being interpreted.
The fix was to change:

$lng.txt_welcome

to

{eval var=$lng.txt_welcome}

shan 08-20-2003 03:06 AM

good call, a few people have asked about this

jsa 01-09-2006 12:13 AM

A little more than 2 years later, this still works with 4.0.17 when placing that statement in welcome.tpl.

I successfully added the date to the home page. Good for letting people know your site is still alive.

{$smarty.now|date_format:"%A, %B %e, %Y"}


All times are GMT -8. The time now is 02:50 PM.

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