{* шаблон детального описания товара *} {if $product_info ne NULL}
{if $isadmin eq "yes"}{/if}
{include file="blocks/pictures.tpl.html"}
{section name=b loop=$blocks_labels} {if in_array($product_info.productID, $blocks_labels[b].products)}
{if $blocks_labels[b].icon}{$blocks_labels[b].title}{else}{$blocks_labels[b].label}{/if}
{/if} {/section} {if is_array($special_offers_ids) && in_array($product_info.productID, $special_offers_ids)}
{if $smarty.const.CONF_SPECIAL_IMG}{$smarty.const.STRING_LABEL_SPECIAL}{else}{$smarty.const.STRING_LABEL_SPECIAL}{/if}
{/if} {if is_array($new_products_ids) && in_array($product_info.productID, $new_products_ids)}
{if $smarty.const.CONF_NEW_IMG}{$smarty.const.STRING_LABEL_NEW}{else}{$smarty.const.STRING_LABEL_NEW}{/if}
{/if} {if is_array($popular_products_ids) && in_array($product_info.productID, $popular_products_ids)}{/if}
{if $product_info.Price && $product_info.discount_percent}-{$product_info.discount_percent}%{/if}
{assign var="set_counter" value=""|setGlobalCounter}

{$product_info.name}

{if $smarty.const.CONF_DISPLAY_PRCODE eq 1}
{if $product_info.product_code} {$smarty.const.STRING_PRODUCT_CODE}: {$product_info.product_code} {/if}
{/if} {if $smarty.const.CONF_CHECKSTOCK eq '1'}
{if $product_info.in_stock > 0} {$smarty.const.IN_STOCK}: {if $smarty.const.CONF_EXACT_PRODUCT_BALANCE == '1'} {$product_info.in_stock} {$smarty.const.STRING_ITEM} {else} {$smarty.const.ANSWER_YES} {/if} {else} {$smarty.const.IN_STOCK}: {if $product_info.in_stock lt 0} {$smarty.const.STOCK_TRAIN_GO} {else} {$smarty.const.ANSWER_NO} {/if} {/if}
{/if}
{if $product_info.enabled}
{if $currencies_count ne 0}
{if $product_info.Price lte "0"} {$smarty.const.STRING_NOPRODUCT_IN} {else} {$product_info.PriceWithUnit} {/if}
{/if} {if $currencies_count ne 0} {if $product_info.list_price > 0 && $product_info.list_price > $product_info.Price && $product_info.Price > 0}
{$product_info.list_priceWithUnit}
{elseif $product_info.original_price}
{$product_info.original_price|show_price}
{/if} {/if}
{/if}
{if $product_info.set_data} {/if}
{if $product_info.enabled} {counter name='select_counter' start=0 skip=1 print=false assign='select_counter_var'} {counter name='product_extra_counter' start=0 skip=1 print=false assign='product_extra_counter_var'} {section name=i loop=$product_extra} {assign var="current_group" value=$product_extra[i].extra_group} {if $product_extra[i].prod_show ne 0 && $product_extra[i].values_to_select} {counter name=product_extra_counter} {if $product_extra[i].option_type ne 0 } {if !isset($prev_group) || $prev_group != $product_extra[i].extra_group}
5}style="display: none;"{/if}>{$extra_group[$current_group].names}
{/if} {assign var="prev_group" value=$current_group} {if $product_extra[i].values_to_select_count ne 0}
5}style="display: none;"{/if}>
{$product_extra[i].name}
{if $product_extra[i].prod_show ne 2}{counter name=select_counter}{/if} {if $product_extra[i].prod_show eq 1} {if count($product_extra[i].values_to_select) != 1} {else} {section name=j loop=$product_extra[i].values_to_select} {$product_extra[i].values_to_select[j].option_value}{if $smarty.section.j.index+1 != $product_extra[i].values_to_select|count}, {/if} {/section} {/if} {elseif $product_extra[i].prod_show eq 2} {section name=j loop=$product_extra[i].values_to_select} {$product_extra[i].values_to_select[j].option_value}{if $smarty.section.j.index+1 != $product_extra[i].values_to_select|count}, {/if} {/section} {elseif $product_extra[i].prod_show eq 3 } {section name=j loop=$product_extra[i].values_to_select} {/section} {elseif $product_extra[i].prod_show eq 4 } {section name=j loop=$product_extra[i].values_to_select} {/section} {/if}
{/if} {elseif $product_extra[i].prod_show eq 5} {counter name=select_counter} {/if} {if $product_extra_counter_var == 5}Посмотреть все характеристики{/if} {/if} {/section} {/if}
{$product_info.brief_description}
{if !$smarty.const.CONF_MULTYCART}{/if}
{if $product_info.enabled} {if $smarty.const.CONF_OPEN_SHOPPING_CART_IN_NEW_WINDOW eq 1} {if $smarty.const.CONF_SHOW_ADD2CART eq 1 && ( $smarty.const.CONF_CHECKSTOCK==0 || $product_info.in_stock > 0 ) }
{if $smarty.const.CONF_MULTYCART}
{/if}
{/if} {if $smarty.const.CONF_QUICK_ORDER && ($smarty.const.CONF_CHECKSTOCK==0 || $product_info.in_stock > 0)} {/if}
{if $smarty.const.CONF_FAVORITES} {/if} {if $smarty.const.CONF_ALLOW_COMPARISON}
{if is_array($smarty.session.comparison) && in_array($product_info.productID, $smarty.session.comparison)} {$smarty.const.ADD_TO_CFOLDER} {else} 0}products-in-comp="{$compare_value}"{/if}>{$smarty.const.STRING_COMPARISON_TITLE} {/if}
{/if}
{else} {if $smarty.const.CONF_CART_METHOD eq 2} {if $smarty.const.CONF_SHOW_ADD2CART eq 1 && ( $smarty.const.CONF_CHECKSTOCK==0 || $product_info.in_stock > 0 ) }
{if $smarty.const.CONF_MULTYCART}
{/if}
{/if} {if $smarty.const.CONF_QUICK_ORDER && ($smarty.const.CONF_CHECKSTOCK==0 || $product_info.in_stock > 0)} {/if}
{if $smarty.const.CONF_FAVORITES} {/if} {if $smarty.const.CONF_ALLOW_COMPARISON}
{if is_array($smarty.session.comparison) && in_array($product_info.productID, $smarty.session.comparison)} {$smarty.const.ADD_TO_CFOLDER} {else} 0}products-in-comp="{$compare_value}"{/if}>{$smarty.const.STRING_COMPARISON_TITLE} {/if}
{/if}
{else if $smarty.const.CONF_CART_METHOD eq 3 } {if $smarty.const.CONF_SHOW_ADD2CART eq 1 && ( $smarty.const.CONF_CHECKSTOCK==0 || $product_info.in_stock > 0 ) }
{if $smarty.const.CONF_MULTYCART}
{/if}
{/if} {if $smarty.const.CONF_QUICK_ORDER && ($smarty.const.CONF_CHECKSTOCK==0 || $product_info.in_stock > 0)} {/if}
{if $smarty.const.CONF_FAVORITES} {/if} {if $smarty.const.CONF_ALLOW_COMPARISON}
{if is_array($smarty.session.comparison) && in_array($product_info.productID, $smarty.session.comparison)} {$smarty.const.ADD_TO_CFOLDER} {else} 0}products-in-comp="{$compare_value}"{/if}>{$smarty.const.STRING_COMPARISON_TITLE} {/if}
{/if}
{else} {if $smarty.const.CONF_SHOW_ADD2CART eq 1 && ( $smarty.const.CONF_CHECKSTOCK==0 || $product_info.in_stock > 0 ) }
{if $smarty.const.CONF_MULTYCART}
{/if}
{/if} {if $smarty.const.CONF_QUICK_ORDER && ( $smarty.const.CONF_CHECKSTOCK==0 || $product_info.in_stock > 0 )} {/if}
{if $smarty.const.CONF_FAVORITES} {/if} {if $smarty.const.CONF_ALLOW_COMPARISON}
{if is_array($smarty.session.comparison) && in_array($product_info.productID, $smarty.session.comparison)} {$smarty.const.ADD_TO_CFOLDER} {else} 0}products-in-comp="{$compare_value}"{/if}>{$smarty.const.STRING_COMPARISON_TITLE} {/if}
{/if}
{/if} {/if} {else}
{$smarty.const.PRODUCT_NOT_AVAILABLE}
{/if} {counter name='select_counter_hidden' start=0 skip=1 print=false} {section name=i loop=$product_extra} {if $product_extra[i].option_type eq 1 && $product_extra[i].prod_show ne 2 && $product_extra[i].prod_show ne 0 && $product_extra[i].values_to_select} {/if} {/section}
{if $right_blocks} {include file="blocks.tpl.html" binfo=$right_blocks cClass='blockRightWrap'} {/if}
{if $smarty.const.CONF_ENABLE_PREVNEXT}
{if $prev_next[0]} {/if} {if $prev_next[1]} {/if}
{/if}
    {if $product_extra}
    • {if $product_info.enabled} {section name=i loop=$product_extra} {assign var="current_group" value=$product_extra[i].extra_group} {if $product_extra[i].prod_show ne 0} {if !isset($prev_group) || $prev_group != $product_extra[i].extra_group}
      {$extra_group[$current_group].names}
      {/if} {assign var="prev_group" value=$current_group} {if $product_extra[i].option_type ne 0 && $product_extra[i].values_to_select}
    • {$product_extra[i].name}
      {section name=j loop=$product_extra[i].values_to_select} {$product_extra[i].values_to_select[j].option_value}{if !$smarty.section.j.last},{/if} {/section}
    • {/if} {if $product_extra[i].option_type eq 0 }
    • {$product_extra[i].name}
      {$product_extra[i].option_value}
    • {/if} {/if} {/section} {/if}
  • {/if} {if $product_info.description || $product_info.brief_description}
  • {if $product_info.description}
    {$product_info.description}
    {elseif $product_info.brief_description}
    {$product_info.brief_description}
    {else} {$smarty.const.NO_DESCRIPTION} {/if}
  • {/if} {if $smarty.const.CONF_USE_DISCUSS}
  • {if $smarty.const.CONF_USE_RATING}

    {$smarty.const.PROD_RATING}:

    {section name=i loop=5} {if $smarty.section.i.index<$product_info.customers_rating} {else} {/if} {/section}
    {/if} {if $smarty.const.CONF_DISQUS_STAT == "1"}
    {else}
    {include file="header_blocks.tpl.html" header=$smarty.const.DISCUSSION_ADD_MESSAGE}
    {if $error ne NULL} {if $error eq 7} {$smarty.const.ERR_WRONG_CCODE} {/if} {/if}
    {if $smarty.const.CONF_ENABLE_CONFIRMATION_CODE && !$log}
    {/if}
    {include file="header_blocks.tpl.html" header="`$smarty.const.DISCUSSION_TITLE`"} {if $product_reviews ne NULL}
    {section name=i loop=$product_reviews}
    {$product_reviews[i].Author}
    {$product_reviews[i].add_time}
    {$product_reviews[i].Body}
    {if $isadmin eq "yes"} {$smarty.const.DISCUSSION_DELETE_POST_LINK} {/if}
    {/section}
    {else}
    {$smarty.const.DISCUSSION_NO_POSTS_ON_ITEM_STRING}
    {/if}
    {/if}
  • {/if} {if $product_info.videos}
  • {section name=i loop=$product_info.videos} {if $product_info.videos[i].is_youtube}
    {else}
    {$product_info.videos[i].link}
    {/if} {/section}
  • {/if} {if $downFiles}
  • {/if}
{/if}