Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
getDiscountPercent () | |
getValue () | |
isPercentageDiscount () | |
![]() | |
__construct (Product $saleableItem, $quantity, CalculatorInterface $calculator, \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency, Session $customerSession, GroupManagementInterface $groupManagement, CustomerGroupRetrieverInterface $customerGroupRetriever=null) | |
getValue () | |
getTierPriceCount () | |
getTierPriceList () | |
getSavePercent (AmountInterface $amount) | |
isPercentageDiscount () | |
![]() | |
__construct (SaleableInterface $saleableItem, $quantity, CalculatorInterface $calculator, \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency) | |
getValue () | |
getAmount () | |
getCustomAmount ($amount=null, $exclude=null, $context=[]) | |
getPriceCode () | |
getProduct () | |
getQuantity () | |
Protected Member Functions | |
getRegularPrice () | |
isFirstPriceBetter ($firstPrice, $secondPrice) | |
![]() | |
isFirstPriceBetter ($firstPrice, $secondPrice) | |
filterTierPrices (array $priceList) | |
applyAdjustment ($price) | |
canApplyTierPrice (array $currentTierPrice, $prevPriceGroup, $prevQty) | |
Protected Attributes | |
$filterByBasePrice = false | |
$percent | |
![]() | |
$customerSession | |
$customerGroup | |
$rawPriceList | |
$priceList | |
$groupManagement | |
![]() | |
$amount | |
$calculator | |
$product | |
$priceType | |
$quantity | |
$priceInfo | |
$value | |
$priceCurrency | |
Additional Inherited Members | |
![]() | |
const | PRICE_CODE = 'tier_price' |
![]() | |
const | PRICE_CODE = 'abstract_price' |
Bundle tier prices model
Definition at line 16 of file TierPrice.php.
getDiscountPercent | ( | ) |
Returns percent discount
Implements DiscountProviderInterface.
Definition at line 33 of file TierPrice.php.
|
protected |
Returns regular price
Definition at line 85 of file TierPrice.php.
getValue | ( | ) |
Returns pricing value
Implements PriceInterface.
Definition at line 64 of file TierPrice.php.
|
protected |
Returns true if first price is better
Method filters tiers price values, higher discount value is better
float | $firstPrice | |
float | $secondPrice |
Definition at line 99 of file TierPrice.php.
isPercentageDiscount | ( | ) |
|
protected |
Definition at line 21 of file TierPrice.php.
|
protected |
Definition at line 26 of file TierPrice.php.