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)
-   -   Address smarty tags in static pages (https://forum.x-cart.com/showthread.php?t=57406)

Johny1 01-06-2011 02:58 PM

Address smarty tags in static pages
 
I can't get Smarty tags for customers address to work in static pages

For example $address.address and $address.address2 don't show up as anything but $fullname works fine.

Please help :P

ARW VISIONS 01-06-2011 07:42 PM

Re: Address smarty tags in static pages
 
is that variable available on static pages?

Johny1 01-07-2011 01:56 PM

Re: Address smarty tags in static pages
 
No it's not available. The only way I could solve this was to run a new MySQL query and bring up the database and pull address details from that.

How can I add variables to the static pages?

cflsystems 01-07-2011 03:08 PM

Re: Address smarty tags in static pages
 
You can include sql query with the info in pages.php and them assign to smarty
$smarty->assign("new_array", $query_result);

Johny1 01-09-2011 01:54 PM

Re: Address smarty tags in static pages
 
Thanks, I got it working now :)


All times are GMT -8. The time now is 12:59 PM.

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