View Single Post
  #4  
Old 04-22-2009, 06:18 AM
 
retrtrtrytrutru retrtrtrytrutru is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 101
 

Default Re: Multiple columns in

Ok, done it Copied the code I needed from products_t.tpl, if anyone is interested:

HTML Code:
{* $Id: products_list.tpl,v 1.10 2008/12/10 08:29:52 max Exp $ vim: set ts=2 sw=2 sts=2 et: *} {if $cat ne "60"} {****CAT 60 ZIJN DE LOSSE LAMPEN****} <br> <table cellspacing="0" cellpadding="0" border="0" id="prodlist"> <tr id="prodlistheaderround"><td colspan="4"></td></tr> <tr id="prodlistheader"><td>Beamer<br />Model:</td><td>Beamer<br />Lampcode:</td><td>{$lng.lbl_price}<br />(incl.):</td><td align="left">Direct<br />bestellen:</td></tr> {foreach from=$products item=product} <tr class="{cycle values='odd,even'}"><td><a href="product.php?productid={$product.productid}" title="{$smarty.capture.link_title|escape}">{$product.descr}</a></td><td><nobr>{include file="currency.tpl" value=$product.taxed_price}</nobr></td><td align="right">{include file="customer/main/buy_now.tpl"}</td></tr> {/foreach} </table> <br><br> {else} {list2matrix assign="products_matrix" assign_width="cell_width" list=$products row_length=3} {assign var="is_matrix_view" value=true} {if $products_matrix} <center><table cellspacing="0" cellpadding="3" border="0"> {foreach from=$products_matrix item=row name=products_matrix} <tr>{foreach from=$row item=product}{if $product}<td align="center"><a href="product.php?productid={$product.productid}&amp;cat={$cat}&amp;page={$navigation_page}">{$product.product|escape}</a></td>{/if}{/foreach}</tr> <tr>{foreach from=$row item=product}{if $product}<td align="center"><a href="product.php?productid={$product.productid}&amp;cat={$cat}&amp;page={$navigation_page}">{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.tmbn_x image_y=$product.tmbn_y product=$product.product tmbn_url=$product.tmbn_url}</a></td>{/if}{/foreach}</tr> <tr>{foreach from=$row item=product}{if $product}<td align="center">{include file="currency.tpl" value=$product.taxed_price} {$lng.lbl_including_tax}<br /><br /><br /></td>{/if}{/foreach} {/foreach} </table></center> {/if} {/if}
Result here: http://www.vervangjelamp.nl/Losse-Beamerlampen-Projector-Lampen/
__________________
www.qualitylamps.eu
X-Cart Gold 4.1.8, PHP 5.2.6, MySQL 5.0.51a, Apache 2.2.9

www.vervangjelamp.nl
X-Cart Gold 4.2.0, PHP 5.2.6, MySQL 5.0.37-standard, Apache/2

Sorry for the weird user name, I registered it by mistake
Reply With Quote