{extends 'template:Base'} {block 'wrapper'} {var $discount = '!discountPercent' | snippet : ['price' => $price,'old_price' => $old_price]}
{include 'breadcrumbs'}
{$_modx->resource.pagetitle}
{$discount}
{'!msGallery' | snippet}
{$discount}
Артикул: {$article}
{'!ecThreadRating' | snippet}
{$price} р.{if $old_price}{$old_price} р.{/if}
{if $_modx->resource.brand.0}

Производитель: {$_modx->resource.brand.0}

{/if} {if $_modx->resource.made_in}

Страна: {$_modx->resource.made_in}

{/if} {if $_modx->resource.author.0}

Автор: {$_modx->resource.author.0}

{/if} {if $_modx->resource.equipment.0}

Комплектация: {$_modx->resource.equipment.0}

{/if} {if $_modx->resource.sizes.0}

Размеры: {$_modx->resource.sizes.0}

{/if}
{var $rem = '!getRemains' | snippet} {if $rem > 0} {else} {/if}
Подборка товаров по схожим категориям: {'!msOptions' | snippet : ['options' => 'tags', 'tpl' => 'tpl.msOptions_tags']}
{$_modx->resource.introtext}
{$_modx->resource.content}
{'!ecForm' | snippet}
Отзывы о товаре
{var $rev_list = '!ecMessages' | snippet} {if $rev_list?} {$rev_list} {else}

Отзывов пока нет.

{/if}
{'!ecThreadRating' | snippet : [ 'tpl' => 'tpl.ecThreadDetailedRating', ]}
РЕКОМЕНДУЕМ
{'!msProducts' | snippet : [ 'parents' => $_modx->resource.parent, 'resources' => '-'~$_modx->resource.id, 'includeThumbs' => 'prev_list', 'tpl' => 'tpl_products_item_2', 'limit' => 6, ]}
{/block}