{extends 'template:Основной'} {block 'main'} {include 'tpl.breadcrumbs'}
{'msGallery' | snippet : ['tpl' => 'tpl.productGallery']}

{$_modx->resource.pagetitle}

Бренд

{$_modx->getPlaceholder('vendor.name')}

Артикул оригинала

{$_modx->getPlaceholder('article')}

Страна производства

{$_modx->getPlaceholder('made_in')}

Категория

{$_modx->resource.parent | resource : 'pagetitle'}

{'!msProductOptions' | snippet : [ 'groups' => '', 'ignoreOptions' => 'availability', 'tpl' => '@INLINE {foreach $options as $option}

{$option.caption}

{if $option.value is array} {$option.value | join : ", "}{else} {$option.value}{/if}

{/foreach}' ]} {'!msProductOptions' | snippet : [ 'groups' => '', 'onlyOptions' => 'availability', 'tpl' => '@INLINE {foreach $options as $option}

{$option.caption}

{if $option.value is array} {$option.value[0]}{else}Под заказ{/if}

{/foreach}' ]}

Описание

{$_modx->resource.content}

{var $price = $_modx->getPlaceholder('price')} {if $price == "0"}По запросу{else}{$price} Р{/if}

цена с НДС за одну штуку

Другие товары

{'!msProducts' | snippet : [ 'parents' => $_modx->resource.parent, 'depth' => 0, 'where' => ['template:=' => 5, 'AND:id:!=' => $_modx->resource.id], 'includeTVs' => 'img, price', 'limit' => '10', 'tpl' => '@INLINE
{$pagetitle}
{$pagetitle}

{if $price == "0"}По запросу{else}{$price} Р{/if}

' ]}
{/block}