View Single Post
  #2  
Old 07-20-2007, 03:19 PM
 
sharingsunshine sharingsunshine is offline
 

Senior Member
  
Join Date: Aug 2005
Location: Palmyra, VA
Posts: 149
 

Default Re: Pass Varialbles from another page

I have taken a tutorial on smarty and the code on the sales.php page shows:

$smarty->assign('main', 'sale_products');
$smarty->display("rjw/specials.tpl");
func_display("customer/home.tpl",$smarty);

I have confirmed the array I need and the values I need thru webmaster mode can be found on the sales.php page but when I click on the links of one of the products the values aren't there. I know I need to set a display page for the smarty variables to be displayed. However, I don't know what page to display the variables at. In my example above I tried the specials.tpl page.

For example, the first link is for a $2 OFF product. When I access that page via webmaster mode the variables aren't present.

Following this tutorial:
http://www.codewalkers.com/c/a/Miscellaneous/Smarty-for-Beginners/1/

It shows the example of using the index.html to display the variable In my example I used the specials.tpl code. In my case what should I put in place of the specials.tpl code?

Please help me with this, I want to understand this concept.

Thanks,

Randal
__________________
***********************
Visit Our Other Web Sites!
∙ Nutritional Herbs and Supplements
<a href="http://www.theherbsplace.com"> The Herbs Place </a>
∙ Frugal Ideas and a Forum To Submit Your Questions
<a href="http://www.thefrugallife.com"> The Frugal Life </a>
∙ Healthy and Natural Pet Products
<a href="http://www.healthypetcorner.com"> Healthy Pet Corner </a>
***********************

Joined 08/02/05
X-Cart Gold Version 4.3.2
Linux RedHat Enterprise
Reply With Quote