View Single Post
  #2  
Old 01-26-2008, 02:29 AM
  SpinyMan's Avatar 
SpinyMan SpinyMan is offline
 

Advanced Member
  
Join Date: Jan 2008
Posts: 30
 

Default 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.
__________________
Regards,
SpinyMan

X-Cart Templates Store -
http://www.x-cart-customization.com/shop/

X-Cart Customization Services -
http://www.x-cart-customization.com/
Reply With Quote