Вывод товаров
Как вывести товары id производителя которых текущий ресурс?
1
{'!pdoPage' | snippet : [
'element' => 'msProducts',
'tpl' => '@FILE chunks/product.tpl',
'parents' => 6,
'limit' => $limit,
'depth' => 4,
'includeTVs' => 'views',
'includeContent' => 1,
'processTVs' => 1,
'tvPrefix' => '',
'where' => '{
"vendor.resource":"$_modx->resource.id"
}',
'sortby' => $sortby,
'sortdir' => $direction,
]}
Комментарии: 1