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">