public function createProductNavigationCriteria( Request
$request,
ShopContextInterface
$context,
$categoryId ) { $criteria =
$this->
createCriteriaFromRequest($request,
$context);
$criteria ->
offset(0
) ->
limit(null
);
$criteria->
removeCondition('category'
);
$criteria->
addBaseCondition(new CategoryCondition([$categoryId]));
$this->eventManager->
notify('Shopware_SearchBundle_Create_Product_Navigation_Criteria',
[ 'criteria' =>
$criteria,
'request' =>
$request,
'context' =>
$context,
]);
$criteria->
resetFacets();
return $criteria;
}