View Single Post
  #5  
Old 01-11-2011, 07:25 AM
 
MAPerformance MAPerformance is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 145
 

Default Re: Using a Smarty tag in PHP code

OK, so is there a way to have smarty generate a variable equal to the productid which can then be read by the php script?

Code:
<?php echo rating_bar('SMARTY_PRODUCTID_VARIABLE_HERE','5'); ?>

In the first set of single-quotes, I want the productid (assigned by SMARTY as a variable?), the second single-quote number is how many stars show up. Or, is it possible to have the php script in this case grab the productid from the X-Cart database?
__________________
www.maperformance.com

X-Cart Version: 4.4.3 Gold
Reply With Quote