View Single Post
  #2  
Old 03-26-2006, 07:06 AM
 
geckoday geckoday is offline
 

X-Wizard
  
Join Date: Aug 2005
Posts: 1,073
 

Default Re: Passing Variables between tpl files.

Quote:
Originally Posted by jherzog
...

Code:
{assign var="VarName" value="MyValue"}

and the wish to call that variable in a different tpl that is loaded later it does not seem to be there.

...
You need to explicitly pass variables to included tpl files like this:

Code:
{include file="another.tpl" var2=$VarName}
This will make $VarName from the main tpl available as $var2 in the included tpl.
__________________
Manuka Bay Company
X-Cart Version 4.0.19 [Linux]

UGG Boots and other fine sheepskin products
http://www.snowriver.com
Reply With Quote