{\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf440 {\fonttbl\f0\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;} \margl1440\margr1440\vieww9000\viewh8400\viewkind0 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural \f0\fs24 \cf0 \{* $Id: buy_now.tpl,v 1.30.2.8 2008/04/07 14:02:15 ferz Exp $ *\}\ \{if $product.price gt 0 or ($active_modules.Special_Offers ne "" and $product.use_special_price ne "")\}\ \{if $config.Product_Options.buynow_with_options_enabled eq 'Y' || ($product.avail eq 0 && $product.variantid && $product.product_type ne 'C')\}\ \{assign var="buynow_enabled" value=false\}\ \{else\}\ \{assign var="buynow_enabled" value=true\}\ \{/if\}\
\ \ \ \ \{/if\}\ \ \ \{if $product.price eq 0 and not ($active_modules.Special_Offers ne "" and $product.use_special_price ne "")\}\ \ \ \ \{else\}\ \{if $product.is_product_options ne 'Y' || $buynow_enabled || $product.variantid\}\ \ \{if $config.General.unlimited_products ne "Y" && ($product.avail le 0 or $product.avail lt $product.min_amount) && $product.variantid\}\ \ \ \{elseif $product.distribution eq "" && !($active_modules.Subscriptions ne "" and $products[product].catalogprice)\}\ \{**\ **\}\ \{else\}\ \ \{/if\}\ \ \ \{elseif $product.distribution eq "" && !($active_modules.Subscriptions ne "" and $products[product].catalogprice) && $config.General.unlimited_products ne "Y" && ($product.avail le 0 or $product.avail lt $product.min_amount) && !$product.variantid\}\ \ \ \ \{/if\}\ \ \ \ \{if $product.min_amount gt 1\}\ \ \ \ \{/if\}\ \{/if\}\
\ \{assign var="button_href" value=$smarty.get.page|escape:"html"\}\ \{include file="buttons/buy_now.tpl" style="button" href="product.php?productid=`$product.productid`&cat=`$cat`&page=`$button_href`"\}\
\{$lng.lbl_quantity\}\{$lng.txt_out_of_stock\}\{$lng.lbl_quantity\}\ \{if $config.General.unlimited_products ne "Y" && ($product.avail le 0 or $product.avail lt $product.min_amount)\}\ \{$lng.txt_out_of_stock\}\ \{else\}\ \{if $config.General.unlimited_products eq "Y"\}\ \{assign var="mq" value=$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\}\ \{if $product.min_amount le 1\}\ \{assign var="start_quantity" value=1\}\ \{else\}\ \{assign var="start_quantity" value=$product.min_amount\}\ \{/if\}\ \{if $config.General.unlimited_products eq "Y"\}\ \{math equation="x+y" assign="mq" x=$mq y=$start_quantity\}\ \{/if\}\ \ \{/if\}\ \ \ \{include file="customer/main/product_prices.tpl" no_span=true\}\
\{$lng.txt_out_of_stock\}
\ \{if $config.General.unlimited_products eq "Y" || ($product.avail gt 0 and $product.avail ge $product.min_amount) || ($product.variantid and $product.avail gt 0)\}\ \ \ \ \ \{if $js_enabled\}\ \{if $special_offers_add_to_cart eq 'Y'\}\ \ \{else\}\ \ \{/if\}\ \{if ($login ne "" || $config.Wishlist.add2wl_unlogged_user eq 'Y') && $active_modules.Wishlist ne "" && $special_offers_add_to_cart eq "" && ($product.is_product_options ne 'Y' || $buynow_enabled)\}\ \ \{/if\}\ \{else\}\ \ \{/if\}\ \
\{include file="buttons/add_to_cart.tpl" style="button" href="javascript: document.orderform_`$product.productid`_`$product.add_date`.submit();"\}\{include file="buttons/buy_now.tpl" style="button" href="javascript: document.orderform_`$product.productid`_`$product.add_date`.submit(); return false;"\}\ \{include file="buttons/add_to_wishlist.tpl" style="text" href="javascript:document.orderform_`$product.productid`_`$product.add_date`.mode.value='add2wl'; document.orderform_`$product.productid`_`$product.add_date`.submit()"\}\ \{include file="submit_wo_js.tpl" value=$lng.lbl_buy_now\}
\ \ \{/if\}\
\{$lng.txt_need_min_amount|substitute:"items":$product.min_amount\}
\ \{if $product.price gt 0 or ($active_modules.Special_Offers ne "" and $product.use_special_price ne "")\}\
\ \{/if\}\ \ }