{* $Id: product.tpl,v 1.59.2.2 2003/01/23 14:37:23 basil Exp $ *} {literal} {/literal} { include file="location.tpl" } {capture name=dialog}
{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product}  {if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{/if}

{if $config.General.show_in_stock eq "Y" and $product.distribution eq ""} {/if} {if $product.weight ne "0.00"}{/if} {if $active_modules.Extra_Fields ne ""} {include file="modules/Extra_Fields/product.tpl"} {/if} {if $active_modules.Subscriptions ne "" and $subscription} {include file="modules/Subscriptions/subscription_info.tpl"} {else} {/if}
{$lng.lbl_details}
 
{$lng.lbl_quantity}{if $product.avail gt 0}{$product.avail}{else}{$lng.txt_no}{/if} {$lng.txt_items_available}
{$lng.lbl_weight}{$product.weight} {$config.General.weight_symbol}
{$lng.lbl_price}: {if $product.price ne 0} {include file="currency.tpl" value=$product.price} {include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.price}{if $config.General.use_vat eq "Y"}, {$lng.lbl_including_vat} {$product.vat}%{/if} {else} {/if}

{if $active_modules.Product_Options ne ""} { include file="modules/Product_Options/customer_options.tpl"} {/if}
{$lng.lbl_options}
 
{$lng.lbl_quantity}{if $product.min_amount gt 1}
{$lng.txt_need_min_amount} {$product.min_amount} {$lng.lbl_items}{/if}
{if $config.General.show_in_stock eq "Y" and ($product.avail le 0 or $product.avail lt $product.min_amount)} {$lng.txt_out_of_stock} {else} {if $config.General.show_in_stock ne "Y"} {assign var="mq" value=$config.General.max_select_quantity} {else} {math equation="min(maxquantity+minamount, productquantity)+1" assign="mq" maxquantity=$config.General.max_select_quantity minamount=$product.min_amount productquantity=$product.avail} {/if} {if $product.distribution eq ""} {else} 1 {$lng.txt_product_downloadable} {/if} {/if}
{if $config.General.show_in_stock ne "Y" or ($product.avail gt 0 and $product.avail ge $product.min_amount)} {include file="customer/main/product_prices.tpl"} {include file="buttons/add_to_cart.tpl"}          {if $login ne "" and $active_modules.Wishlist ne ""} {include file="customer/add2wl.tpl"} {/if} {/if}

{if $product.discount ne 0}

 { $product.discount }%
{/if}
{/capture} {include file="dialog.tpl" title=$product.producttitle content=$smarty.capture.dialog extra="width=100%"} {if $active_modules.Detailed_Product_Images ne ""}

{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}