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)
-   -   Assigning question (https://forum.x-cart.com/showthread.php?t=36026)

weckie 12-08-2007 01:00 PM

Assigning question
 
Somewhere in a *.tpl file there is this line:

{assign var="_userinfo" value=$customer}{else}{assign var="_userinfo" value=$userinfo}{/if}

My guess, xcart assigns several info to the variable.

Now my question, how can i display all the info that is assigned to it in a list?

Or, How can i display the variable $customer. I tried {$customer} didnt work.

SpinyMan 01-26-2008 02:29 AM

Re: Assigning question
 
Quote:

Originally Posted by weckie
Somewhere in a *.tpl file there is this line:

{assign var="_userinfo" value=$customer}{else}{assign var="_userinfo" value=$userinfo}{/if}

My guess, xcart assigns several info to the variable.

Now my question, how can i display all the info that is assigned to it in a list?

Or, How can i display the variable $customer. I tried {$customer} didnt work.


open "mail/html/order_invoice.tpl" file. After line
Quote:

{if $customer ne ''}{assign var="_userinfo" value=$customer}{else}{assign var="_userinfo" value=$userinfo}{/if}
write next:
Quote:

{foreach from=$_userinfo item=u}
{$u}<br>
{/foreach}


it will return full customer info.

weckie 01-26-2008 03:20 AM

Re: Assigning question
 
Thanks Spiny,

I will give it a shot tonight.


All times are GMT -8. The time now is 06:13 PM.

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