{extends 'template:38'} {set $product_parent = 'parent' | resource : 'parent'} {block 'page'}

{$page.longtitle ?: $page.pagetitle}

{'tpl.productBadges' | chunk : ['badgeNew' => $page.new, 'badgePopular' => $page.popular]} {*$page.old_price ? '
-'~('discount' | snippet : ['oldprice' => $page.old_price, 'price' => $page.price])~'%
' : ''*}
{'!addComparison' | snippet : [ 'list' => $page.parent, 'list_id' => 107, 'id' => $page.id, 'tpl' => 'tpl.Comparison.add_custom', 'maxItems' => 10 ]} {* *}
{'msGallery' | snippet : [ 'tpl'=>'tpl.msGalleryCustom', ]}
Все отзывы {*({$ec_total ? $ec_total : 0})*} {'!ecThreadRating' | snippet : [ 'thread' => $page.id, ]}
{$page.available == 'в наличии' ? '
В наличии
' : ''} {$page.available == 'на складе' ? '
На складе
' : ''} {$page.available == 'под заказ' ? '
Под заказ
' : ''} {$page.available == 'снято с продажи' ? '
Снято с продажи
' : ''} {*
{'msOptions' | snippet : [ 'options' => 'size', 'tpl' => 'tpl.msOptionsCustom', ]}
*}
Наличие: {$page.available == 'снято с продажи' ? 'Снято с продажи' : $page.available}
{if $page.vendor}
Производитель: {$_modx->getPlaceholder('vendor.name')}
{/if}
Группа товара: {$page.parent | resource : "pagetitle"}
{if $price?} {if $_modx->resource.id in [382]}от {/if}{$price} руб. {else} Цена по запросу {/if}
{if $price?} {else} {/if} {*if $available != "под заказ"} {/if*}
{if $page.certificate}
Сертификат Официальный дилер
{/if}
{'tpl.analogButton' | chunk : ['analogId' => $page.id, 'analogName' => $page.pagetitle, 'analogUrl' => ($page.id | url), 'analogAvailable' => $page.available]}
    {if $product_parent == '287' || ($product_parent | resource : 'parent') == '287'} {/if}
Описание
{$page.content}
Технические характеристики
{set $custom_options_list = json_decode($_modx->resource.parent | resource : 'custom_list_options', true)} {if $custom_options_list} {set $options_list = []} {foreach $custom_options_list as $item index=$index} {'msProductOptions' | snippet : [ 'tpl' => 'tpl.option', 'onlyOptions' => $item.opt_item ]} {/foreach} {else} {'msProductOptions' | snippet : [ 'tpl' => 'tpl.option' ]} {/if}
{if $product_parent == '287' || ($product_parent | resource : 'parent') == '287'}
Сертификаты
{$_modx->resource.certificates_block}
{/if}
Доставка

Информация о доставке

Срок поставки товара из наличия по Петербургу - на следующий рабочий день после оплаты заказа, если товара нет в наличии - сроки подскажет менеджер по продажам.

Стоимость доставки по Петербургу, в пределах кольцевой автодороги — 500 рублей.

Бесплатная доставка - от суммы заказа больше 10 000 рублей.

Стоимость доставки за пределами КАД С-Пб и в Ленинградскую область, или в регионы, уточняйте у менеджера отдела продаж.

Оплата

Информация об оплате.

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

Мы работаем только с юридическими лицами зарегистрированными в Российской Федерации.

Все необходимые для бухгалтерии документы (оригинал счета на оплату, УПД) выдаются вместе с заказом при получении, вы также можете запросить у менджера сканы документов на проверку перед отгрузкой.

Сопутствующие товары
{* получаем массив id товаров из третьей связи *} {var $products_group_1 = '!msProducts' | snippet : [ 'parents' => '0', 'link' => '3', 'master' => $page.id, 'tpl' => 'tpl.dop_product_item', 'returnIds' => 1 ] | split} {* получаем массив id товаров из четвертой связи *} {var $products_group_2 = '!msProducts' | snippet : [ 'parents' => '0', 'link' => '4', 'master' => $page.id, 'tpl' => 'tpl.dop_product_item', 'returnIds' => 1 ]| split} {* объединяем массивы *} {var $arr = array_merge($products_group_1, $products_group_2)} {* удаляем дубли элементов массива *} {var $prod_list = array_unique($arr)} {if $prod_list | count > 1} {'!msProducts' | snippet : [ 'parents' => '0', 'resources' => $prod_list | join, 'tpl' => 'tpl.dop_product_item' ]} {/if} {* получаем массив id товаров из седьмой связи *} {var $products_group_3 = '!msProducts' | snippet : [ 'parents' => '0', 'link' => '7', 'master' => $page.id, 'tpl' => 'tpl.dop_product_item', 'returnIds' => 1 ]} {if $products_group_3} {set $arr_products_group_3 = $products_group_3 | split} {set $parent_list = []} {foreach $arr_products_group_3 as $item index=$index} {set $parent_list[$index] = $item | resource : 'parent'} {/foreach} {'!msProducts' | snippet : [ 'parents' => $parent_list | join, 'limit' => 25, 'tpl' => 'tpl.dop_product_item' ]} {/if}
{**}
Похожие товары
{set $prods = ('msProducts' | snippet : [ 'parents'=> $_modx->resource.parent, 'resources'=>-($_modx->resource.id), 'tpl'=>'tpl.hit_2', 'sortby' => 'RAND()', 'includeContent'=> 1, 'includeThumbs'=>'tablet' ])} {if $prods} {$prods} {else} {'msProducts' | snippet : [ 'parents'=>'5', 'resources'=>-($_modx->resource.id), 'where'=>'{ "Data.popular":1 }', 'tpl'=>'tpl.hit_2', 'includeContent'=> 1, 'prepareTVs'=> 1, 'includeThumbs'=>'tablet' ]} {/if}
Отзывы о товаре
{if 'tablet' | mobiledetect} {set $messagesTpl = 'tpl.ecMessages.RowCustom_tablet'} {else} {set $messagesTpl = 'tpl.ecMessages.RowCustom'} {/if} {set $messages = '!ecMessages' | snippet : [ 'setTotal' => 1, 'totalVar' => 'ec_total', 'tpl' => $messagesTpl, 'sortby' => 'date', 'sortdir' => 'DESC', 'limit' => 10, 'thread' => $page.id ]} {$messages ? $messages : '

Будьте первым, кто оставит отзыв!

'}
{include 'tpl.productReviewForm'} {include 'tpl.productPreorderForm'} {*include 'tpl.oneClickBuy'*} {/block}