CriteriaPartInterface
$criteriaPart,
Criteria
$criteria,
Search
$search,
ShopContextInterface
$context ) { $search->
addPostFilter($this->
getQuery($context));
} private function getQuery(ShopContextInterface
$context): RangeQuery
{ return new RangeQuery( $this->
getPseudoPriceField($context),
['gt' => 0
] );
} private function getPseudoPriceField(ShopContextInterface
$context): string
{ $key =
$context->
getCurrentCustomerGroup()->
getKey();
$currency =
$context->
getCurrency()->
getId();
return 'calculatedPrices.' .
$key . '_' .
$currency . '.calculatedPseudoPrice';
}}