View Single Post
  #1  
Old 12-31-2010, 01:18 PM
 
MAPerformance MAPerformance is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 145
 

Default Using a Smarty tag in PHP code

Hey all,

I'm trying to implement a rating system I found that uses PHP to display the "stars" image. Here is the code I want to put in my main/product.tpl below the Buy Now and Wishlist buttons:

PHP Code:
<?php $rr->showStars("productid"); ?>

I want to use the productid because the ratings system uses an SQL database to keep track of everything and each item needs a unique identifier. Thanks in advance for any help.
__________________
www.maperformance.com

X-Cart Version: 4.4.3 Gold
Reply With Quote