View Single Post
  #5  
Old 02-05-2003, 08:16 AM
 
Blackhawk Blackhawk is offline
 

Senior Member
  
Join Date: Dec 2002
Location: United States
Posts: 101
 

Default This code?

I assumed you meant products.tpl.. I'm thinking that the way the info passes to the search engine.. that maybe the div by 2 command should be in a different place.. I mean.. browsing thru categories works fine.. its only on searches do I get the phantom doubling.

Code:
{* $Id: products.tpl,v 1.16 2002/09/25 10:12:05 zorg Exp $ *} <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"> <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].productcode | escape} - {$products[product].product|escape}</font> <font class=TableCenterProductTitleOrange></font> <font size=1> {$products[product].descr|truncate:300:"...":true} </font> <hr size=1 noshade width=230 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=TableCenterProductTitleOrange>{$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=TableCenterProductTitleOrange>{$lng.lbl_enter_your_price}</font> {/if} {/if} </td> <tr><td> <form name=orderform_{%product.index%} method=post action="cart.php?mode=add"> <td align=left> <a href="javascript: document.orderform_{%product.index%}.submit()"> {include file="buttons/add_to_cart.tpl"}</a> <input type=hidden name=amount value=1> <input type=hidden name=mode value=add> <input type=hidden name=productid value="{$products[product].productid}"> <input type=hidden name=cat value="{$smarty.get.cat}"> <input type=hidden name=page value="{$smarty.get.page}"> <a href=product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}> {* {include file="buttons/moreinfo.tpl"} *}</a> </td> </form> </td> </tr> </tr> </table> <table width="100" border="0" cellspacing="0" cellpadding="0"> <tr> </tr> </table> </td> {/section} </td></tr></table> </td></tr></table>
Reply With Quote