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?