View Single Post
  #1  
Old 04-19-2008, 03:34 PM
 
MOC MOC is offline
 

Senior Member
  
Join Date: Oct 2002
Posts: 171
 

Default how to get 4 products a row on products.tpl?

hi there,
i wanna display 4 products a row on products.tpl. (VERSION: 4.1.9)

i used this code, but it doesn't work for me. anyone who can tell me whats wrong with it?

Code:
<DIV class=product_records_container style="MARGIN-BOTTOM: 2px; BORDER-BOTTOM: #cccccc 1px dotted"> <TABLE cellSpacing=0 cellPadding=0 width=585 border=0> <TBODY> {section name=product loop=$products} {assign var="discount" value=0} {if %product.index% is div by 4} <tr> {/if} <TR> <TD> <TABLE id=ctl00_cpContentArea_dlProductRecords style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 border=0> <TBODY> <tr> <TD vAlign=top> <DIV class=prod_box> <A href="product.php?productid={$products[product].productid}&amp;cat={$cat}&amp;page={$navigation_page}"> {include file="product_thumbnail.tpl" productid=$products[product].productid image_x=130 image_y=130 product=$products[product].product tmbn_url=$products[product].tmbn_url}</a> {if $active_modules.Special_Offers ne "" and $products[product].have_offers} {include file="modules/Special_Offers/customer/product_offer_thumb.tpl" product=$products[product]} {/if} <IMG alt="" src="feature_exclusive.gif"> <P><SPAN class=prodname>{$products[product].product}</SPAN></P></A> <P class=shortdescription>{$products[product].descr}</P> <P class=instock>--extrafield-shipping--</P><IMG src="star50.gif"> <P class=prodprice>Our Price: {include file="currency.tpl" value=$products[product].price} ({include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].taxed_price})</P></DIV></TD> </tr> </TBODY></TABLE></TD></TR>{/section}</TBODY></TABLE></DIV>
__________________
X-Cart Gold Version 3.5.14 (Live)
X-Cart Gold Version 4.1.10 (in dev)

Modification for 4.1.10
Run with 1 License, 1 Database up to 5 Shops with different domains, config, categories and more. click here for informations
Reply With Quote