{extends 'template:Основной'} {block 'content'} {$_modx->runSnippet('!msProducts', [ 'limit' => 0, 'tpl' => 'one.product.tpl.in_collection', 'class' => 'msProduct', 'innerJoin' => '{ "msCategory": { "class":"msCategory", "alias":"msCategory", "on":"msProduct.parent = msCategory.id"}}', 'sortby' => '{ "Link.sort":"ASC" }', 'tvPrefix' => '', 'includeThumbs' => 'normal', 'leftJoin' => '{ "normal": { "class":"msProductFile","alias":"normal", "on": "normal.product_id = msProduct.id AND normal.path LIKE \'%/normal/\' AND normal.rank=0"} ,"normalx1": { "class":"msProductFile","alias":"normalx1", "on": "normalx1.product_id = msProduct.id AND normalx1.path LIKE \'%/normal/\' AND normalx1.rank=1"} }', 'select' => '{ "msProduct":"*" ,"normal":"normal.url as normal" ,"normalx1":"normalx1.url as normalx1" }', 'parents' => '9407', 'depth' => '10', 'link' => '2', 'master' => $_modx->resource.id, 'toPlaceholder' => 'slave', '-showLog' => 1, ])} {$_modx->runSnippet('!msProducts', [ 'limit' => 0, 'tpl' => 'one.product.tpl.in_collection', 'class' => 'msProduct', 'innerJoin' => '{ "msCategory": { "class":"msCategory", "alias":"msCategory", "on":"msProduct.parent = msCategory.id"}}', '-sortby' => '{ "price":"ASC" }', 'tvPrefix' => '', 'includeThumbs' => 'normal', 'leftJoin' => '{ "normal": { "class":"msProductFile","alias":"normal", "on": "normal.product_id = msProduct.id AND normal.path LIKE \'%/normal/\' AND normal.rank=0"} ,"normalx1": { "class":"msProductFile","alias":"normalx1", "on": "normalx1.product_id = msProduct.id AND normalx1.path LIKE \'%/normal/\' AND normalx1.rank=1"} }', 'select' => '{ "msProduct":"*" ,"normal":"normal.url as normal" ,"normalx1":"normalx1.url as normalx1" }', 'parents' => '9407', 'depth' => '10', 'link' => '3', 'master' => $_modx->resource.id, 'toPlaceholder' => 'slaveCompareBuy', ])}
Дата доставки: | {$_modx->runSnippet('!tomorrowDay')} |
Дата самовывоза: | {$_modx->runSnippet('!currentDay')} |
Стоимость доставки: | Узнать |
Способ оплаты: | Узнать |
Стоимость | Уточняйте у менеджера |
Способ оплаты: | Узнать |
Самовывоз: | Уточняйте у менеджера |
Заказной товар: | Возврату не подлежит |
{if $old_price}
{$old_price} ₽
{/if}
{if $old_price}
{/if}
{$price} ₽
()
{if $old_price}
{/if}
{if $old_price}
{var $old_price_float = $old_price | replace : ' ':''}
{var $price_float = $price | replace : ' ':''}
{*(( ($id | resource : 'old_price') - ($id | resource : 'price') ) / ($id | resource : 'old_price') * 100) | round*}
{(( $old_price_float - $price_float ) / $old_price_float * 100) | round}%
{/if}
{if !$old_price}
{if $_modx->runSnippet('!check_action')}
{if $_modx->runSnippet('!info_action')}
{/if}
{/if}
{if $_modx->getPlaceholder('check_action_placeholder')}
{$old_price} ₽
-{$_modx->resource.price - $_modx->resource.old_price} ₽
{(( ($id | resource : 'old_price') - ($id | resource : 'price') ) / ($id | resource : 'old_price') * 100) | round}% {/if*}{$_modx->lexicon('ms2_product_' ~ $sklad)}: {$id | resource : $sklad} ({$unity})
Склад: {$_modx->lexicon('ms2_product_' ~ $sklad)}
Количество на складе: {$id | resource : $sklad} ({$unity})
{$_modx->lexicon('ms2_product_' ~ $field)} | {switch $field} {case 'color', 'destination', 'size', 'tile_format', 'surface_type'}{implode(', ', $id | resource : $field)} | {case default}{$id | resource : $field} | {/switch}