View Single Post
  #2  
Old 05-19-2008, 09:31 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Firetank - Customers who bought this also bought...

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}
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote