/**
* {@inheritdoc}
*/
public function joinPrices( QueryBuilder
$query,
ShopContextInterface
$context ) { if ($query->
hasState(self::STATE_INCLUDES_CHEAPEST_PRICE
)) { return;
} $this->
joinDefaultPrices($query,
$context);
$graduation = 'customerPrice.from = 1';
if ($this->config->
get('useLastGraduationForCheapestPrice'
)) { $graduation = "IF(priceGroup.id IS NOT NULL, customerPrice.from = 1, customerPrice.to = 'beliebig')";
} $query->
leftJoin( 'product',
's_articles_prices',
'customerPrice',
'customerPrice.articleID = product.id
AND customerPrice.pricegroup = :currentCustomerGroup
AND '