I improved this a little, so
1-It displays the title of the FAQ instead of 'Product FAQ'
2-It will display only if there are FAQ for the product
in product.php towards the end, before
Code:
$smarty->assign("product",$product_info);
I added:
Code:
if ($product_info['faq'] !='0'){
$faqtitle=db_query("SELECT title from xcart_pages WHERE pageid='$product_info[faq]'");
$mytitle=db_result($faqtitle,"title");
$smarty->assign("mytitle",$mytitle);
}
and in skin1/customer/main/product.tpl
Code:
{if $product.faq ne '0'}<TR><TD>Additional data:
</td><td><A HREF="pages.php?pageid={$product.faq}" target="_BLANK">{$mytitle}
</A></td></tr>{/if}