View Single Post
  #15  
Old 03-01-2005, 03:25 PM
  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.15.2.7 2004/12/01 15:15:49 mclap Exp $ *} <TABLE border="0" width="100%" cellpadding="0" cellspacing="0" > {if $product.price eq 0} <TR> <TD height="25" align="center"> {if $login ne "" and $active_modules.Wishlist ne "" and $special_offers_add_to_cart eq ""} {if $product.is_product_options ne 'Y' || $config.Appearance.buynow_with_options_enabled ne 'Y'} {include file="buttons/add_to_wishlist.tpl" style="button" href="javascript:document.orderform_`$product.productid`_`$product.add_date`.mode.value='add2wl'; document.orderform_`$product.productid`_`$product.add_date`.submit()"} {/if} {/if} </TD> </TR> {else} <FORM name="orderform_{$product.productid}_{$product.add_date}" method="post" action="{if $product.is_product_options eq 'Y' && $config.Appearance.buynow_with_options_enabled eq 'Y'}product.php?productid={$product.productid}{else}cart.php?mode=add{/if}"> <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"}"> {if $product.is_product_options ne 'Y' || $config.Appearance.buynow_with_options_enabled ne 'Y'} <TR> <INPUT type="hidden" name="amount" value="1"> <TD width="100%" valign="middle"> <INPUT type="hidden" name="mode" value="add"> {include file="customer/main/product_prices.tpl"} </TD> </TR> {/if} <TR> <TD align="center"> <div align="center"> {if $config.General.unlimited_products eq "Y" or ($product.avail gt 0 and $product.avail ge $product.min_amount)} <TABLE border="0" cellpadding="0" cellspacing="0"><TR> {if $js_enabled} {if $special_offers_add_to_cart eq 'Y'} <TD align="center"><center>{include file="buttons/add_to_cart.tpl" style="button" href="javascript: document.orderform_`$product.productid`_`$product.add_date`.submit();"}</TD> {else} <TD align="center"><center>{include file="buttons/buy_now.tpl" style="button" href="javascript: document.orderform_`$product.productid`_`$product.add_date`.submit();"} {/if} {if $login ne "" and $active_modules.Wishlist ne "" and $special_offers_add_to_cart eq ""} {if $product.is_product_options ne 'Y' || $config.Appearance.buynow_with_options_enabled ne 'Y'} {include file="buttons/add_to_wishlist.tpl" style="button" href="javascript:document.orderform_`$product.productid`_`$product.add_date`.mode.value='add2wl'; document.orderform_`$product.productid`_`$product.add_date`.submit()"} </center> </TD> {/if} {/if} {else} <TD align="center">{include file="submit_wo_js.tpl" value=$lng.lbl_buy_now}</TD> {/if} </TR></TABLE></div> {/if} </TD> </TR> </FORM> {if $product.min_amount gt 1} <TR> <TD><FONT class="ProductDetailsTitle">{$lng.txt_need_min_amount} {$product.min_amount} {$lng.lbl_items}</FONT> </TD> </TR> {/if} {/if} </TABLE>
Reply With Quote