{* *}{strip} {if !empty($item)} {$demo = !empty($config->demo)} {$demoCount = 6} {$number = $number|default:1}
{* *} {if $demo} {else} {findImage type=product view='*' assign=image} {$image['alt']} {/if} {* *}

{if empty($fullview)} {**} {else} {**} {/if} {name} {**} {* *} {if !empty($item->category_plural)} {echoVar from='item->category_plural'} {/if}

{* *}
  • Характеристики
  • {if !empty($item->properties_tree)} {foreach $item->properties_tree as $property} {if !empty($property)} {$first = array_shift($property)} {if !empty($first->in_product) && !empty($first->name)} {$dummy = array_unshift($property, $first)} {* *}
  • {echoVar from='first->name'}: {**} {* *} {if count($property) > 1} {$separator = ''} {foreach $property as $v} {$separator} {$v->value|default:'-'} {$separator = ', '} {/foreach} {else} {$first->value|default:'-'} {/if}
  • {/if} {/if} {/foreach} {/if} {* *} {if !empty($item->brand)}
  • Производитель
  • {echoVar from='item->brand'}
  • {/if} {* *} {$num = 1} {if !empty($item->variants)} {foreach $item->variants as $variant} {if $helper->maybeSale($item, $num) === TRUE} {$num = TRUE} {break} {/if} {$num = $num + 1} {/foreach} {/if}
  • Наличие
  • {if $num === TRUE} Есть в наличии {else} Отсутствует {/if}
{* *}
  • Код производителя
  • {$item->pcode|default:'--/--'}
  • {* *}
  • Цена
  • {if !empty($item->variants)} {$price = 0} {$final = 0} {$num = 1} {foreach $item->variants as $variant} {inputValue from='variant->variant_id' assign=variantId} {$dummy = $helper->hasDiscount($item, $num, $price, $final)}
  • {echoVar from='variant->name'} {$final} {sign}
  • {$num = $num + 1} {/foreach} {/if} {* *}
  • Поиск товаров
{* *} {if empty($fullview)}
{annotation}
{else}
{body}
{* *} {section name=images loop=1000} {$number = $number + 1} {findImage type=product view='*' num=$number assign=image} {if empty($image['found']) && (!$demo || $number > 4)} {break} {/if} {* *} {if $number == 2}

{**} Дополнительные фото

{/if} {* *} {if $demo} {else} {$image['alt']} {/if} {/section} {* *} {include 'common/share.htm'} {* *} {if !empty($item->seo_description)}
{$item->seo_description}
{/if} {* *} {if !empty($item->commented)} {include 'common/comments.htm' items=$comments|default:FALSE} {/if} {/if}
{/if} {/strip}