This is pretty cool but I have a question. Where would I put this snippet (Funkydunk's) in the following?: This is the code for 2 columns of products from post
http://forum.x-cart.com/viewtopic.php?t=287&postdays=0&postorder=asc&start =0
Code:
<table border=0 width=100%><tr><td>
<table border=0 width=100%>
{section name=product loop=$products}
{if $smarty.section.product.index is div by 2}
</tr><tr valign="top">
{/if}
<td valign="top"{if $smarty.section.product.index is div by 2} class="alternate1"{else} class="alternate2"{/if}>
<table border=0 width=100%><tr>
<td width=90 align=center valign=top><a href=product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}>{include file="product_thumbnail.tpl" productid=$products[product].productid image_x=70 product=$products[product].product}
{ $lng.lbl_see_details }</a></td>
<td valign=top>
{$products[product].product|escape}</font> <font class=ProductTitle></font><font size=1>
{$products[product].descr|truncate:100:"...":true}
</font><hr size=1 noshade width=130 align=left>
{if $active_modules.Subscriptions ne "" and $products[product].catalogprice}
{include file="modules/Subscriptions/subscription_info_inlist.tpl"}
{else}
{if $products[product].price ne 0}
{if $products[product].discount ne 0}
<font class=MarketPrice>{$lng.lbl_market_price}: <s>{math equation="(price/(100-discount))*100" price=$products[product].price discount=$products[product].discount format="%d.00" assign=unformatted}{include file="currency.tpl" value=$unformatted}</s></font>
{/if}
<font class=ProductTitle>{$lng.lbl_our_price}: {include file="currency.tpl" value=$products[product].price}</font><font class=MarketPrice>{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].price}</font>{if $products[product].discount ne 0}, save {$products[product].discount}%{/if}
{else}
<font class=ProductTitle>{$lng.lbl_enter_your_price}</font>
{/if}
{/if}
</td></tr>
</table>
</td>
{/section}
</td></tr></table>
</td></tr></table>
If I keep it where it is (about line 10), I get the right column in all grey but the left column is white. I think because of the way the products are listed in a multi column view:
product1 | product2
product3 | product4
whereas in a single column it would be:
product1
product2
product3
etc.
I've tried it in the <table> <tr> and <td> tags with no success.
Any advice is welcome,
Scurvy[/url]