{extends 'template:1'} {block 'Crumbs'} {set $sourcePath = "inc/"} {set $category_left_banner_tmp = ('!getTVparents'|snippet:['tv'=>'category_left_banner', 'migx_where' => '{ "active":1 }'])} {set $category_right_banners_tmp = ('!getTVparents'|snippet:['tv'=>'category_right_banners', 'migx_where' => '{ "active":1 }'])} {if $category_left_banner_tmp? && $category_right_banners_tmp?}
{foreach $category_left_banner_tmp | fromJSON as $left_banner} {if $left_banner.active != 1}{continue}{/if} {break} {/foreach}
{/if} {set $showH1=true} {parent} {/block} {block 'Content'} {set $cat_filters = ('!getTVparents'|snippet:['tv'=>'category_filters','prepareTV' => true])} {set $cat_filters_aliases = $cat_filters|getAliasesFilters} {'!mFilter2'|snippet:[ 'loadModels' => 'storehouse', 'class' => 'msProduct', 'element' => 'msProductsFiltered', 'parents' => $_modx->resource.id, 'limit' => 12, 'tplOuter' => 'tpl.category.outer', 'tpls' => 'tpl.category.filter.tpl', 'tplFilter.outer.default' => 'tpl.category.filter.outer', 'tplFilter.row.default' => 'tpl.category.filter.checkbox', 'tplFilter.outer.price' => 'tpl.category.filter.slider', 'tplFilter.row.price' => 'tpl.category.filter.number', 'tplPageWrapper' => '@INLINE
{{+prev}}
{{+pages}}
{{+next}}
', 'tplPageActive' => '@INLINE {{+pageNo}}', 'tplPage' => '@INLINE {{+pageNo}}', 'tplPagePrev' => '@INLINE ', 'tplPageNext' => '@INLINE ', 'tplPageFirst' => '@INLINE {{+pageNo}}', 'tplPageLast' => '@INLINE {{+pageNo}}', 'tplPageSkip' => '@INLINE ...', 'tplPagePrevEmpty' => '@INLINE ', 'tplPageNextEmpty' => '@INLINE ', 'pageLimit' => 7, 'values_delimeter' => ';;', 'filters' => ' ms|price:number, ms|image:boolean, msoption|brend, '~$cat_filters, 'aliases' => ' ms|price==price, ms|image==image, msoption|brend==brend, msoption|brend|value==brend_sort, '~$cat_filters_aliases, 'sortAliases' => '{ "msoption|brend":"brend", }', 'sortbyOptions' => 'brend:string', 'sort' => 'price:asc', 'includeThumbs' => 'medium', 'innerJoin' => '{ "shProductOffer": { "class": "shProductOffer", "on": "shProductOffer.product_id = msProduct.id" }, "shStoreOffer": { "class": "shStoreOffer", "on": "shProductOffer.id = shStoreOffer.offer_id" } }', 'where' => '{ "shStoreOffer.count:>":0 }', 'showLog' => false, ]} {include 'SeoText'} {/block}