Okay, here it is "buy_now.tpl:
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"}">
<tr>
{if $product.distribution eq ""}
<td height=25 width=15% nowrap>{$lng.lbl_quantity}
</td>
<td width=20%>
{if $config.General.unlimited_products ne "Y" and ($product.avail le 0 or $product.avail lt $product.min_amount)}
{$lng.txt_out_of_stock}
{else}
{if $config.General.unlimited_products eq "Y"}
{math equation="x+1" assign="mq" x=$config.Appearance.max_select_quantity}
{else}
{math equation="x/y" x=$config.Appearance.max_select_quantity y=$product.min_amount assign="tmp"}
{if $tmp<2}
{assign var="minamount" value=$product.min_amount}
{else}
{assign var="minamount" value=1}
{/if}
{math equation="min(maxquantity+minamount, productquantity+1)" assign="mq" maxquantity=$config.Appearance.max_select_quantity minamount=$minamount productquantity=$product.avail}
{/if}
<select name=amount>
{if $product.min_amount le 1}
{assign var="start_quantity" value=1}
{else}
{assign var="start_quantity" value=$product.min_amount}
{/if}
{section name=quantity loop=$mq start=$start_quantity}
<option value="{%quantity.index%}" {if $smarty.get.quantity eq %quantity.index%}selected{/if}>{%quantity.index%}</option>
{/section}
</select>
{/if}
</td>
{else}
<input type=hidden name="amount" value="1">
{/if}
<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 $product.min_amount gt 1}
<tr>
<td colspan=3><FONT class=ProductDetailsTitle>{$lng.txt_need_min_amount} {$product.min_amount} {$lng.lbl_items}</FONT>
</td>
</tr>
{/if}
{/if}
</table>
{/if}