{extends 'template:1'} {block 'title'} {set $optionProcessor = $_modx->resource.processor.0} {set $optionRAM = $_modx->resource.ram.0} {set $optionMemory = $_modx->resource.rom.0} {set $optionWAN = $_modx->resource.wan.0} {set $optionDopinfo = $_modx->resource.dopinfo.0} {set $optionAndroidVersion = $_modx->resource.android.0} {if $_modx->user.id > 0 && $_modx->isMember('OptPrice') && $_modx->resource.price_opt.0} {set $price = $_modx->resource.price_opt.0} {/if} {var $combo} {if $optionProcessor != ''}{$optionProcessor} | {/if} {if $optionRAM != ''}{$optionRAM}+{$optionMemory}{/if} {if $optionWAN == 'Да'} | 4G{/if} {/var} {if $optionAndroidVersion} {set $pagetitle = ($pagetitle | replace : "на Android" : "на") ~ ' ' ~$optionAndroidVersion} {/if} {if $combo} {set $pagetitle = $pagetitle ~ ' ('} {if $optionDopinfo} {set $pagetitle = $pagetitle ~ $optionDopinfo} {/if} {set $pagetitle = $pagetitle ~ ' ' ~ $combo ~ ')'} {/if} {set $description = $pagetitle ~ $description} {var $newtitle}{$pagetitle} купить в {$city_rp} | {'site_name' | config}{/var} {$newtitle|escape} {/block} {block 'description'} {/block} {block 'ldJsonSchema'} {'!productSchema' | snippet : [ 'title' => ($pagetitle ~ ' купить в ' ~ $city_rp), 'description' => $description ]} {/block} {block 'content'} {'!msOptionsPrice.initialize' | snippet : [ 'allow_not_defined' => 1 ]}
{'!msGallery' | snippet : []}
{* 1. Инициализируем пустой массив для сбора ID *} {set $videoResources = []} {* 2. Добавляем ID текущей страницы (товара) *} {if $_modx->resource.id} {set $videoResources[] = $_modx->resource.id} {/if} {* 3. Получаем артикул. В товарах miniShop2 он доступен напрямую *} {set $article = $_modx->resource.article ?: ''} {* 4. Проверяем, содержит ли артикул подстроку 'RS'. Оператор 'in' в Fenom работает и с массивами, и со строками *} {if 'RS' in $article} {set $videoResources[] = 118} {/if} {* 5. Вызываем сниппет. Массив склеивается модификатором | join, на выходе получится "id_товара" или "id_товара,118" *} {set $rvg = '!ResVideoGallery' | snippet : [ 'ajaxMode' => 'scroll', 'checkPermissions' => 0, 'resources' => $videoResources | join : ',', 'tpl' => '', 'tplEmbed' => '', 'tplRow' => 'resVideoGalleryRowTpl.mainpage', ]} {$rvg}
{$_modx->regClientScript("")} {$_modx->regClientScript("")}
{if $_modx->resource.id == 1006} {include 'ms2_form_deploy_work'} {else} {include 'ms2_form_deploy'} {/if}
{'!optionMedia' | snippet : [ 'article' => $article, ]}
{set $rawContent = $_modx->resource.content} {$_modx->runSnippet('!CityReplacer@PropertySet', [ 'text' => $rawContent, 'original_city' => 'Екатеринбург', 'target_city' => $_modx->getPlaceholder('cf.current_city') ])}
{if $rvg}
{$rvg}
{/if}
{include 'characteristics'}
{if $_modx->getPlaceholder('relateditem') != true} {set $where = [ 'template' => 3, 'Data.image IS NOT NULL', 'pagetitle' => $_modx->resource.pagetitle ]} {if $_modx->config.showZero != 1} {set $where['Data.price:>'] = 0} {/if} {set $sameTovars = 'pdoPage' | snippet : [ 'parents' => $_modx->resource.parent, 'resources' => '-' ~ $_modx->resource.id, 'element' => 'msProducts', 'sortby' => 'price', 'sortdir' => 'ASC', 'checkPermissions' => 0, 'where' => $where, 'includeTVs' => 'optionProcessor,optionMemory,optionRAM,optionWAN', 'tpl' => 'tpl.msProducts.row.fx_model_intovar', ]} {if $sameTovars} {/if} {/if} {set $lookedTovars = '!looked' | snippet : [ 'snippet' => 'msProducts', 'element' => 'msProducts', 'includeTVs' => 'optionProcessor,optionMemory,optionRAM,optionWAN', 'tpl' => 'lookedProductTpl', 'includeThumbs' => 'normal', 'tplOuter' => 'lookedOuterCustomTpl' ]} {if $lookedTovars} {$lookedTovars} {/if} {/block} {block 'aside'} {parent} {$_modx->regClientScript("")}
Получите ответы на все вопросы!

Оставьте свой номер, чтобы записаться на установку магнитолы.

* Примите пользовательское соглашение

{/block}