View Single Post
  #3  
Old 04-22-2009, 04:36 AM
 
retrtrtrytrutru retrtrtrytrutru is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 101
 

Default Re: Multiple columns in

Hi Victor,

I know products_list is for displaying one product per row... this is used for all my categories except one. The actual products_list file looks like this:

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} <center> <table cellspacing="0" cellpadding="3" border="0"> <tr> {foreach from=$products item=product} {assign var="url" value="product.php?productid=`$product.productid`&amp;cat=`$cat`&amp;page=`$navigation_page`"} <td align="center"><a href="{$url}">{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><br /><a href="{$url}" class="product-title">{$product.product|escape}</a> ({include file="currency.tpl" value=$product.taxed_price})</td> {/foreach} </tr> </table> </center> {/if}
So if the cat equals 60 I want a different layout which has got me stuck because it's hard to figure out how to create 2 rows now since I am not using the appearance options at all. I will check your posts, maybe I can work it out myself. Thanks!
__________________
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