View Single Post
  #7  
Old 05-12-2006, 08:27 AM
  Zaja's Avatar 
Zaja Zaja is offline
 

X-Adept
  
Join Date: Mar 2004
Location: The Universe is my home
Posts: 420
 

Default

Grant, do you feel lucky today?

Replace products.tpl code with this:
Code:
{* $Id: products.tpl,v 1.45.2.17 2006/04/21 08:53:50 svowl Exp $ *} {if $usertype eq "C" and $config.Appearance.products_per_row ne "" and $config.Appearance.products_per_row gt 0 and $config.Appearance.products_per_row lt 4 and ($featured eq "Y" or $config.Appearance.featured_only_multicolumn eq "N")} {include file="customer/main/products_t.tpl" products=$products} {else} {if $products} {section name=product loop=$products} {assign var="discount" value=0} <table border="0" cellpadding="5" cellspacing="1" width="100%"> <tr style="background-color:{cycle values="#eee,#fff};"> <td style="width:300px;"> <font class="ProductTitle">{$products[product].product}</font> </td> <td> {if $products[product].product_type eq "C"} {include file="buttons/details.tpl" href="product.php?productid=`$products[product].productid`&cat=`$cat`&page=`$navigation_page`"} {else} {if $active_modules.Subscriptions ne "" and ($products[product].catalogprice gt 0 or $products[product].sub_priceplan gt 0)} {include file="modules/Subscriptions/subscription_info_inlist.tpl"} {else} {if $products[product].taxed_price ne 0} <font class="ProductPrice">{include file="currency.tpl" value=$products[product].taxed_price}</font> {/if} {/if} </td> <td style="text-align:right;width:110px;"> {if $usertype eq "C" and $config.Appearance.buynow_button_enabled eq "Y"} <form style="margin:0;" name="orderform_{$products[product].productid}_{$products[product].add_date}" method="post" action="cart.php?mode=add"> <input type="hidden" name="productid" value="{$products[product].productid}"> <input type="hidden" name="cat" value="{$smarty.get.cat|escape:"html"}"> <input type="hidden" name="page" value="{$smarty.get.page|escape:"html"}"> <input type="hidden" name="amount" value="1"> <input type="button" value="{$lng.lbl_add_to_cart}" onclick="document.orderform_{$products[product].productid}_{$products[product].add_date}.submit();"> </form> {/if} </td> {/if} </tr> </table> {/section} {else} {$lng.txt_no_products_found} {/if} {/if}
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote