Hi,
I'm trying to embed the following code into my product descriptions. This code works fine if it is in the tpl_product_info_display.php file, but I want it in the description text area.
This generates a random quote using phpmyquote on the product page.
<!--display random testimonial-->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="rightbox" id="bannerbox-table">
<tr class="rightboxheading" id="bannerbox-heading-tr">
<!-- Sidebox Header -->
<td colspan="3" width="100%" class="rightboxheading" id="bannerbox-heading-td">What our customers are saying...</td>
</tr>
<tr>
<td colspan="3" class="rightboxcontent" id="bannerbox-content">
<div id="bannerboxContent" class="sideBoxContent">
<?
include("/home/mypath/phpmyquote/quotes.inc.php");
mysql_connect($GLOBALS['host'],$GLOBALS['username'],$GLOBALS['password']) or die("Could not connect");
mysql_select_db($GLOBALS['database']);
echo ShowQuote(1);
?>
</div> </td>
</tr>
<tr>
<!-- Sidebox Footer -->
<td colspan="3" height="5px" class="rightboxfooter" id="bannerbox-footer">
</td>
</tr>
</table>
I mange my data offline in a FileMaker Pro database, so I'm inserting the above code into the description field there and then importing into ZC using Easy Populate. The reason I'm doing this is that I have unique customer testimonials for some products, but not all, so this will fill in with a random, generic testimonial, giving the appearance that all the products have at least one testimonial.
Any ideas? I'm not a programmer or PHP wiz... but I'm thinking that the code isn't being parsed when it in the description area but it is when it is part of a .php template component.
If this is the case, any way around it?
Thanks,
Brad



