Try this -- I have it set for 4 products in the
$limit = 4;
setting in the mod
I am using a css class "listing1" and "listing2" to highlight/shade the table cell on hover.
This will make a horizontal table and fill it with products. image_y=100 -- fixes the image height at 100px.
Hope this helps
Jeremy
Code:
{if $also_bought_products|@count gt 0}
{capture name=also_bought}
<table align="center">
<tr>{section name=i loop=$also_bought_products}
<td align="center" class="listing1" onmouseover="this.className='listing2'" onmouseout="this.className='listing1'"><a href="product.php?productid={$also_bought_products[i].productid}" target="{$targetwin}">{include file="product_thumbnail.tpl" productid=$also_bought_products[i].productid image_y=100 product=$also_bought_products[i].product tmbn_url=$also_bought_products[i].tmbn_url}</a><br />
<div align="center">
<a href="product.php?productid={$also_bought_products[i].productid}" target="{$targetwin}">{$also_bought_products[i].product}</a></div></td>
<td><img src="{$ImagesDir}/spacer.gif" alt="" height="1" width="7" border="0" /></td>
{/section}</tr>
</table><br />
{/capture}
{include file="dialog.tpl" title="Customers who bought this also bought..." content=$smarty.capture.also_bought extra="width=100%"}
{/if}