35 if ($this->percent ===
null) {
36 $prices = $this->getStoredTierPrices();
38 $this->
value = $prevPrice =
false;
39 $priceGroup = $this->groupManagement->getAllCustomersGroup()->getId();
43 || !isset(
$price[
'percentage_value'])
44 || !is_numeric(
$price[
'percentage_value'])
48 if (
false === $prevPrice || $this->
isFirstPriceBetter($price[
'website_price'], $prevPrice)) {
49 $prevPrice =
$price[
'website_price'];
50 $prevQty =
$price[
'price_qty'];
51 $priceGroup =
$price[
'cust_group'];
52 $this->percent = max(0, min(100, 100 -
$price[
'percentage_value']));
66 if ($this->
value !==
null) {
73 $this->
value = $regularPrice * ($tierPrice / 100);
101 return $firstPrice > $secondPrice;
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
canApplyTierPrice(array $currentTierPrice, $prevPriceGroup, $prevQty)
const PRODUCT_QUANTITY_DEFAULT
isFirstPriceBetter($firstPrice, $secondPrice)