Швеллер гнутый нержавеющий пищевой
Внимание! Появились компании, которые используют наше название. Это мошенники! Обращайте внимание на расчетный счет нашей организации 40702810238000232498
В связи с высокой волатильностью отпускных цен комбинатов актуальные цены на металл уточняйте у менеджеров
Швеллер гнутый нержавеющий пищевой
{extends 'template:Base'} {block 'content'} {'!msOptionsPrice.initialize' | snippet}{$_modx->getPlaceholder('sf.h1') ?: $_modx->resource.longtitle ?: $_modx->resource.pagetitle}{if $.get['page'] > 1} | Страница {$.get['page']}{/if}
{if $_modx->resource.seo_rules_id?} {'sfMenu' | snippet: [ 'parents' => $_modx->resource.filter_parents ?: $_modx->resource.id, 'rules' => $_modx->resource.seo_rules_id, 'mincount' => 1, 'groupbyrule' => 1, 'tplGroup' => '@INLINE
{$name | replace: "' ~ $_modx->resource.pagetitle~ '": "" | trim}:
{$wrapper}
',
'tplOuter' => '@INLINE {$wrapper}',
'tpl' => '@INLINE {$name}',
]}
{/if}
{'getExtraColumns' | snippet}
{if $_modx->getPlaceholder('exclude')?}
{set $exclude = $.php.array_diff(($_modx->getPlaceholder('exclude') | split), [''])}
{else}
{set $exclude = []}
{/if}
{'fastPdoMenu' | snippet : [
'parents' => $_modx->resource.id,
'level' => 1,
'resources' => $exclude ? ('-' ~ $exclude | join: ',-') : '',
'includeTVs' => 'category-icon,service-icon,filter_parents',
'where' => '{"class_key:!=":"msProduct"}'
'outerClass' => 'category-list uk-grid uk-child-width-1-2 uk-child-width-1-3@s uk-child-width-1-4@m',
'tplOuter' => '@INLINE - {$wrapper}
{$_modx->getPlaceholder('sf.introtext')}
{elseif $_modx->getPlaceholder('site_url') == 'https://vestametall.ru/' && $_modx->resource.introtext?}
{$_modx->resource.introtext}
{/if}
{set $ids = [$_modx->resource.id]}
{set $parents = $_modx->getParentIds($_modx->resource.id, 10, ['context' => 'web'])}
{set $sort = [$.get.sort ?: 'popular:desc']}
{set $sort[] = 'emptyprice:asc'}
{foreach $parents as $parent}
{set $categorySort = 'pdoField' | snippet: [
'id' => $parent,
'field' => 'option-sort'
]}
{if $categorySort?}
{set $categorySort = $categorySort | split: '||'}
{foreach $categorySort as $tmp}
{set $sort[] = $tmp ~ ':asc'}
{/foreach}
{break}
{/if}
{/foreach}
{set $tvFilters = $_modx->resource.filters | fromJSON}
{set $filters = []}
{foreach $tvFilters as $filter}
{set $filters[] = $filter['field_filter']}
{/foreach}
{set $filterResponse = '!sphinxFilter' | snippet: [
'page_id' => $_modx->resource.id,
'parents' => $_modx->resource.filter_parents ?: $_modx->resource.id,
'filters' => $filters,
'exclude' => $exclude,
'pageVarKey' => 'page',
'page' => $.get['page'] ?: 1,
'sort' => $sort,
'limit' => $.get['limit'] == '100500' ? 0 : 40,
'optionFilters' => $_modx->resource.filter_optionFilters,
'tplWrapper' => 'tpl.msProductsCustom.outer',
'tpl' => 'tpl.msProductsCustom.row',
'tplPageWrapper' => '@INLINE - {$prev}{$pages}{$next}
{include 'linking'}
{set $filters = $filterResponse.filters}
{if $filters?}
{/if}
{include 'category_reviews'}
{if $filterResponse.parents?}
{set $popularProducts = $_modx->runSnippet('!msProducts', [
'parents' => 0,
'limit' => 0,
'sortby' => 'RAND()',
'tplWrapper' => 'tpl.msProductsCustom.outer',
'tpl' => 'tpl.msProductsCustom.row',
'where' => '{"parent:IN": [' ~ ($filterResponse.parents | join) ~ '], "Data.popular": 1}',
'wrapIfEmpty' => 0,
])}
{if $popularProducts?}
{/if}
{/if}
{if $filterResponse.total < 20 && $filterResponse.total > 0 && $_modx->getPlaceholder('sf.seo_id')?}
{set $count = 0}
{set $limit = 20 - $filterResponse.total}
{set $idsInCat = $_modx->runSnippet('msProducts', ['parents' => $_modx->resource.id, 'limit' => 0, 'returnIds' => 1])}
{set $count = count($idsInCat | split)}
{if $count >= $limit}
{set $parent = $_modx->resource.id}
{else}
{set $parent = $_modx->resource.parent}
{/if}
{set $parents = 'getCategoryIds' | snippet: ['id' => $parent]}
{if $parents?}
{/if}
{/if}
{include 'callOrder'}
{if $.get['page'] < 2}
{if $_modx->getPlaceholder('sf.content')?}
Фильтр
{'sfMenu' | snippet: [
'parents' => $_modx->resource.filter_parents ?: $_modx->resource.id,
'mincount' => 1,
'minlevel' => 2,
'tplOuter' => '@INLINE
',
'tpl' => '@INLINE
'
]}
{$filterResponse.products}
* Указанные цены не являются публичной офертой. Уточнить наличие и стоимость продукции на текущий день можно у наших менеджеров по контактным телефонам или с помощью формы обратной связи.
{$filterResponse.pagination}
{$_modx->getPlaceholder('sf.content')}
{elseif !$_modx->getPlaceholder('sf.seo_id')?}
{'!getContent' | snippet}
{if $_modx->getPlaceholder('subdomain_content')?}
{$_modx->getPlaceholder('subdomain_content')}
{/if}
{/if}
{/if}
{'!linking' | snippet}
{*'sfMenu' | snippet: [
'fast' => 1,
'where' => '{"page_id": ' ~ $_modx->resource.id ~ ', "total:>": 0}',
'groupbyrule' => 1,
'tplGroup' => 'tpl.sfmenu.group',
'tpl' => 'tpl.sfmenu.row',
'sortby' => "CAST(sfDictionary.field_id as DECIMAL(10,2)), CAST(substring_index(sfDictionary.input,'х','1') as DECIMAL(10,2)), CAST(substring_index(sfDictionary.input,'х','-1') as DECIMAL(10,2)), CAST(sfDictionary.input as DECIMAL(10,2))",
'sortdir' => 'ASC'
]*}
{/block}