[[!msProducts? &tpl=`tovartplCat` &limit=`64` &parents=`2` &tvFilters=`[[!where]]` &includeTVs=`types,config,style,fasad` ]]
а вот сам сниппет where
<?php
$filterz = '';
if($_GET['types']) $filterz = $filterz.'types==%*'.$_GET['types'].'*%'.',';
if($_GET['config']) $filterz = $filterz.'config==%*'.$_GET['config'].'*%'.',';
if($_GET['style']) $filterz = $filterz.'style==%*'.$_GET['style'].'*%'.',';
if($_GET['fasad']) $filterz = $filterz.'fasad==%*'.$_GET['fasad'].'*%'.',';
if($filterz !=='') $filterz = substr($filterz,0,-1);
return $filterz;
так вообще работает или как то по другому надо?
Комментарии: 1