View Single Post
  #1  
Old 04-11-2004, 01:37 PM
 
info@bodymarcat.com info@bodymarcat.com is offline
 

Member
  
Join Date: Apr 2004
Posts: 19
 

Default Change recomended list to show 3 in a row instead of vertica

I have figured out (with all the great posts in here) how to add thumbnails the way I want in the recomended list. What I want to do now is change it to display 2 or 3 in a row instead of vertical.

Below is the piece of code for the related_products.tpl (in bold is what I added to default)

{* $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">
<td width=1%>#{$product_links[cat_num].productid}</td>
<td width=99%>
<a href="product.php?productid={ $product_links[cat_num].productid }" >
{ $product_links[cat_num].product|escape}

[img]../image.php?productid={$product_links[cat_num].productid}[/img]

</a>
</td>
</tr>
{/section}
</table>
{/capture}
{include file="dialog.tpl" title=$lng.lbl_related_products content=$smarty.capture.dialog extra="width=100%"}
{/if}

If anyone could tell me what and where to change I would appreciate it.
Reply With Quote