$keys =
$context->
getRuleIds();
if (\
count($keys) >
$this->maxRulePrices
) { $this->logger->
warning(\
sprintf('More than %d rules are active, only the first %d rules are considered for the cheapest price calculation',
$this->maxRulePrices,
$this->maxRulePrices
));
$this->logger->
info( 'More rules then the configured `dal.max_rule_prices` are active, thus not all rule prices are considered for the cheapest price. You can increase the `dal.max_rule_prices`, but this will have a negative performance impact. Consider restructuring your rules, so that not so many match at the same time.'
);
$keys = \
array_slice($keys, 0,
$this->maxRulePrices
);
} $keys[] = 'default';
$jsonAccessor = 'net';
if ($context->
getTaxState() === CartPrice::TAX_STATE_GROSS
) { $jsonAccessor = 'gross';
} $parts =
explode('.',
$accessor);
// is tax state explicitly requested? => overwrite selector
if (\
in_array(end($parts),
['net', 'gross'
], true
)) { $jsonAccessor =
end($parts);
array_pop($parts);
}