View Single Post
  #6  
Old 02-28-2005, 08:43 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

Try this:

Code:
{* $Id: buy_now.tpl,v 1.8.2.2 2004/12/09 12:42:16 max Exp $ *} {if $js_enabled} <table border=0 width=100% cellpadding=0 cellspacing=0> {if ($active_modules.Product_Options ne "" and $product.product_options) or $product.price eq 0} <tr> <td height=25> {include file="buttons/buy_now.tpl" style="button"} </td> </tr> {else} <FORM name="orderform_{$product.productid}_{$product.add_date}" method=post action="cart.php?mode=add"> <input type=hidden name=productid value="{$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"> <tr> <td height=25> <input type=hidden name=mode value=add> {include file="customer/main/product_prices.tpl"} {if $config.General.unlimited_products eq "Y" or ($product.avail gt 0 and $product.avail ge $product.min_amount)} {if $js_enabled} {include file="buttons/buy_now.tpl" style="button"} {if $login ne "" and $active_modules.Wishlist ne ""} {include file="buttons/add_to_wishlist.tpl" style="button"} {/if} {else} {include file="submit_wo_js.tpl" value=$lng.lbl_add_to_cart} {/if} {/if} </td> </tr> </FORM> {/if} </table> {/if}
Reply With Quote