-
{$rel_articles}
{if $_modx->config.items_on_category_page?} {set $items_on_category_page = $_modx->config.items_on_category_page} {else} {set $items_on_category_page = 12} {/if} {if $_modx->config.cultureKey != 'ua'} {set $products = $_modx->runSnippet('!mFilter2Numberfield', [ 'element' => 'msProducts', 'paginator' => 'pdoPage', 'parents' => "{$_modx->resource.parent_id?:$_modx->resource.parent}", 'limit' => "{$items_on_category_page}", 'maxLimit' => 0, 'depth' => 4, 'showEmptyFilters' => 0, 'suggestionsSliders' => 1, 'showZeroPrice' => 0, 'tplWrapper' => 'tplOutresult', 'tplOuter' => 'tplMfilter2Outer', 'tplFilter.outer.default' => 'tplMfilter2FilterOuter', 'tplFilter.row.default' => 'tplMfilter2FilterCheckbox', 'tplFilter.outer.ms|price' => 'tplMfilter2Slider', 'tplFilter.row.ms|price' => 'tplMfilter2Number', 'aliases' => 'ms|vendor==vendor,resource|parent==parent,'~$_modx->runSnippet('categoryOptionsAlias')~'', 'suggestions' => 1, 'tpls' => 'tplProduct', 'sortby' => '{"Data.availability":"DESC","Data.important_item":"DESC","Data.price":"ASC"}', 'includeThumbs' => 'small,small_mobile', 'includeTVs' => 'video,label_product', 'includeContent' => 1, 'filters' => ' ms|price:number, ms|vendor:vendors, msoption|tags, msoption|color, msoption|size, parent:categories, '~$_modx->runSnippet('categoryOptions')~', ', 'values_delimeter' => '_', 'leftJoin' => '{"localizator" : {"class" : "localizatorContent","alias" : "localizator","on" : "localizator.resource_id = msProduct.id"}}', 'select' => '{ "localizator" : "msProduct.*, localizator.*, msProduct.id" }', 'where' => '{ "localizator.key" : "' ~ ('localizator_key' | option) ~ '"}', 'class' => 'msProduct', 'tplPageWrapper' => '@INLINE