View Single Post
  #1  
Old 10-22-2008, 07:23 PM
  Christopher728's Avatar 
Christopher728 Christopher728 is offline
 

Advanced Member
  
Join Date: Jun 2004
Location: CA
Posts: 46
 

Question How to Hard code a 3 column layout in products_t.tpl?

Hello,
This will sound like a somewhat odd request, but I need to hard code my templates_t.tpl with a 3 column layout. I need it set to "0" in the admin , but hard coded with "3" in this file, cause I'm doing a skin swapping thing.

Below is what I believe to be the controling portion of code from products_tpl, does anyone know how to rewrite it the way I need?

Thanks in advance!

Code:
<table width="100%" cellpadding="5" cellspacing="5"> {math equation="floor(100/x)" x=$config.Appearance.products_per_row assign="width"} {section name=product loop=$products} {assign var="discount" value=0} {if %product.index% is div by $config.Appearance.products_per_row} <tr> {assign var="cell_counter" value=0} {/if} {math equation="x+1" x=$cell_counter assign="cell_counter" } <td width="{$width}%" class="PListCell">
__________________
X-cart versions 4.1.11, 4.1.9 & 4.1.8
Reply With Quote