For one product in my site, I would like the Related Products table to link to an entire category. My idea was to edit the database and add a related product with an odd product number, such as 77777 (This willl never be used). I then modified related_products.tpl as follows thinking this would do what I wanted. I was wrong.
Code:
{* $Id: related_products.tpl,v 1.7 2002/10/22 10:27:05 olga Exp $ *}
{if $product_links ne ""}
{capture name=dialog}
<table border=0 cellspacing=5>
{section name=cat_num loop=$product_links}
<tr class="ItemsList">
{if $product_links[cat_num].productid == 77777}
<td width=1%>asdf </td>
<td width=99%>
<a href="home.php?cat=999" target=_blank>
Thule Fit Kits </a>
{else}
<td width=1%>#{$product_links[cat_num].productid}</td>
<td width=99%>
<a href="product.php?productid={ $product_links[cat_num].productid }" target=_blank>
{ $product_links[cat_num].product|escape} </a>
{/if}
</td>
</tr>
{/section}
</table>
{/capture}
{include file="dialog.tpl" title=$lng.lbl_related_products content=$smarty.capture.dialog extra="width=100%"}
{/if}
The result was that the Related Products box was gone completely. I would greatly appreciate any form of help.