{* $Id: product.tpl,v 1.147.2.26 2008/07/22 07:58:28 ferz Exp $ *} {include file="main/include_js.tpl" src="main/popup_image.js"} {if $active_modules.Special_Offers} {include file="modules/Special_Offers/customer/product_offers_short_list.tpl" product=$product} {/if} {include file="form_validation_js.tpl"} {if $product.product_type eq "C" && $active_modules.Product_Configurator} {include file="modules/Product_Configurator/pconf_customer_product.tpl"} {else} {capture name=dialog}
{ if $active_modules.Detailed_Product_Images ne "" && $config.Detailed_Product_Images.det_image_popup eq 'Y' && $images ne '' && $js_enabled eq 'Y'} {include file="modules/Detailed_Product_Images/popup_image.tpl" } {else} {include file="product_thumbnail.tpl" productid=$product.image_id image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.image_url id="product_thumbnail" type=$product.image_type}  {/if} {* include file="thickbox/thickbox_productpage.tpl" *} {if $active_modules.Magnifier ne "" and $config.Magnifier.magnifier_image_popup eq 'Y' and $zoomer_images ne '' and $js_enabled eq 'Y' and $printable neq 'Y'} {include file="modules/Magnifier/popup_magnifier.tpl"} {/if}  
 
 
   
 
{* not used *} {if $product.taxed_price gt 0 and $product.list_price gt 0} {/if} {* added add2cart - add2wl routine*} {if $product.forsale ne "B"} {else} {$lng.txt_pconf_product_is_bundled} {/if} {* end - added add2cart - add2wl routine*}
{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{/if}= $product.list_price} style="display: none;"{/if}>

{math equation="100-(price/lprice)*100" price=$product.taxed_price lprice=$product.list_price format="%3.0f" assign=discount}  { $discount }%
{include file="buttons/add_to_cart.tpl" style="button" href="javascript: if(FormValidation()) document.orderform.submit();"}          {if ($login ne "" || $config.Wishlist.add2wl_unlogged_user eq 'Y') && $active_modules.Wishlist ne ""} {include file="customer/add2wl.tpl"} {/if}
{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{/if}

{if $config.Appearance.show_in_stock eq "Y" and $config.General.unlimited_products ne "Y" and $product.distribution eq ""} {/if} {if $product.weight ne "0.00" || $variants ne ''} {/if} {if $active_modules.Extra_Fields ne ""} {include file="modules/Extra_Fields/product.tpl"} {/if} {if $active_modules.Feature_Comparison ne ""} {include file="modules/Feature_Comparison/product.tpl"} {/if} {if $active_modules.Subscriptions ne "" and $subscription} {include file="modules/Subscriptions/subscription_info.tpl"} {else} {/if}
{$lng.lbl_details}
 
{$lng.lbl_sku} {$product.productcode}
{$lng.lbl_in_stock} {if $product.avail gt 0}{$lng.txt_items_available|substitute:"items":$product.avail}{else}{$lng.lbl_no_items_available}{/if}
{$lng.lbl_weight} {$product.weight|formatprice} {$config.General.weight_symbol}
{$lng.lbl_price}: {if $product.taxed_price ne 0 || $variant_price_no_empty} {include file="currency.tpl" value=$product.taxed_price plain_text_message=true} {include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.taxed_price plain_text_message=true} {if $product.taxes}
{include file="customer/main/taxed_price.tpl" taxes=$product.taxes}{/if} {else} {/if}

{if $product.forsale neq "B" or ($product.forsale eq "B" and $smarty.get.pconf ne "" && $active_modules.Product_Configurator)} {if $active_modules.Product_Options ne ""} { include file="modules/Product_Options/customer_options.tpl"} {/if} {/if}
{$lng.lbl_options}
 
{$lng.lbl_quantity}{if $product.min_amount gt 1}
{$lng.txt_need_min_amount|substitute:"items":$product.min_amount}{/if}
{if $config.General.unlimited_products eq "N" and (($product.avail le 0 or $product.avail lt $product.min_amount) and $variants eq '' or $variants ne '' and $product.avail le 0)} {$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.distribution eq "" && !($active_modules.Subscriptions ne "" && $subscription) && $product.forsale ne "B"} {math assign="start_quantity" equation="max(x, y)" x=1 y=$product.min_amount} {if $config.General.unlimited_products eq "Y"} {math equation="x+y" assign="mq" x=$mq y=$start_quantity} {/if} {if $quantity_input_box_enabled} {else} {/if} {else} 1 {if $product.distribution ne ""}{$lng.txt_product_downloadable}{/if} {/if} {/if}
{if $product.forsale ne "B"}{include file="customer/main/product_prices.tpl"}{/if} {if $config.General.unlimited_products eq "Y" || ($product.avail gt 0 and $product.avail ge $product.min_amount) || $variants ne '' and $product.avail gt 0} {if $js_enabled}
{if $product.forsale ne "B"}
{include file="buttons/add_to_cart.tpl" style="button" href="javascript: if(FormValidation()) document.orderform.submit();"}          {if ($login ne "" || $config.Wishlist.add2wl_unlogged_user eq 'Y') && $active_modules.Wishlist ne ""} {include file="customer/add2wl.tpl"} {/if}
{else} {$lng.txt_pconf_product_is_bundled} {/if} {if $smarty.get.pconf ne "" && $active_modules.Product_Configurator}

{include file="buttons/button.tpl" button_title=$lng.lbl_pconf_add_to_configuration style="button" href="javascript:if (FormValidation()) `$ldelim`document.orderform.productid.value='`$smarty.get.pconf`';document.orderform.action='pconf.php';document.orderform.submit()`$rdelim`"} {if $config.General.unlimited_products ne "Y" && $product.pconf_avail le 0}
{$lng.lbl_note}: {$lng.lbl_pconf_slot_out_of_stock_note}
{/if}
{$lng.txt_add_to_configuration_note}
{/if} {else} {include file="submit_wo_js.tpl" value=$lng.lbl_add_to_cart} {/if} {/if} {if $active_modules.Feature_Comparison ne ""} {include file="modules/Feature_Comparison/product_buttons.tpl"} {/if}

{/capture} {include file="dialog.tpl" title=$product.producttitle content=$smarty.capture.dialog extra='width="100%"'} {/if} {if $active_modules.Magnifier ne "" && ($config.Magnifier.magnifier_image_popup ne 'Y' || $js_enabled ne 'Y')}

{include file="modules/Magnifier/product_magnifier.tpl" productid=$product.productid} {/if} {if $config.Appearance.send_to_friend_enabled eq 'Y' and $printable neq 'Y'}

{include file="customer/main/send_to_friend.tpl" } {/if} {* if $active_modules.Detailed_Product_Images ne "" && ($config.Detailed_Product_Images.det_image_popup ne 'Y' || $js_enabled ne 'Y')}

{include file="modules/Detailed_Product_Images/product_images.tpl"} {/if *} {if $active_modules.Upselling_Products ne ""}

{include file="modules/Upselling_Products/related_products.tpl" } {/if} {if $active_modules.Recommended_Products ne ""}

{include file="modules/Recommended_Products/recommends.tpl" } {/if} {if $active_modules.Customer_Reviews ne ""}

{include file="modules/Customer_Reviews/vote_reviews.tpl" } {/if} {if $active_modules.Product_Options ne '' and ($product_options ne '' or $product_wholesale ne '') and ($product.product_type ne "C" or !$active_modules.Product_Configurator)} {/if}