{extends 'template:1'} {block 'Crumbs'}{/block} {block 'Content'}
{include 'Crumbs'}

{$_modx->resource.pagetitle}

{if $old_price? && $price != $old_price}
распродажа
{/if} {'msGallery'|snippet:[ 'tpl' => 'tpl.product.gallery' ]}
{if $article?}

Артикул: {$article}

{/if} {if $old_price? && $price != $old_price}

{$old_price} {'ms2_frontend_currency'|lexicon}    {$price} {'ms2_frontend_currency'|lexicon}

{else}

{$price} {'ms2_frontend_currency'|lexicon}

{/if} {if $_modx->resource.introtext?}

{$_modx->resource.introtext}

{/if}
{'!shProductOffers'|snippet:[ 'tpl' => 'tpl.product.offers' ]} {'!shOffersOptionsWithIcon'|snippet:[ 'tpl' => 'tpl.product.offers.options' ]}
1
{$_modx->resource.id|shInStock: 4}
{if $_modx->isAuthenticated($_modx->context.key)}
{/if}
{'!shProductStoreOffers'|snippet:[ 'tpl' => 'tpl.product.stores' ]}
    {if $_modx->resource.content?}
  • Описание
  • {/if}
  • Характеристики
  • {if false}
  • Отзывы о товаре
  • {/if}
{if $_modx->resource.content?}
{$_modx->resource.content}
{/if}
{'!pdoResources'|snippet:[ 'class' => 'modCategory', 'where' => '{ "parent": 37 }', 'sortby' => 'rank', 'sortdir' => 'asc', 'limit' => 0, 'tpl' => 'tpl.product.optionGroup', ]}
{if false} {/if}
{set $idsSimular = 'msProducts'|snippet:[ 'parents' => $_modx->resource.parent, 'resources' => '-'~$modx->resource.id, 'limit' => 7, 'sortby' => 'RAND()', 'where' => '{ "Data.price:>":0 }', 'returnIds' => true ]} {if ($idsSimular|split|length)==7}
catalog_img

Похожие
товары

Отличный выбор
продукции

{'msProducts'|snippet:[ 'parents' => $_modx->resource.parent, 'resources' => $idsSimular, 'tpl' => 'tpl.similars.products.row', 'includeThumbs' => 'medium', 'sortby' => 'RAND()', 'useWeblinkUrl' => 1, ]}
{/if} {/block}