Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (WeeeHelper $weeeHelper, PriceCurrencyInterface $priceCurrency, $sortOrder=null) | |
getAdjustmentCode () | |
isIncludedInBasePrice () | |
isIncludedInDisplayPrice () | |
extractAdjustment ($amount, SaleableInterface $saleableItem, $context=[]) | |
applyAdjustment ($amount, SaleableInterface $saleableItem, $context=[]) | |
isExcludedWith ($adjustmentCode) | |
getSortOrder () | |
Data Fields | |
const | ADJUSTMENT_CODE = 'weee' |
Protected Member Functions | |
getAmount (SaleableInterface $saleableItem) | |
Protected Attributes | |
$weeeHelper | |
$sortOrder | |
$priceCurrency | |
Weee pricing adjustment
Definition at line 18 of file Adjustment.php.
__construct | ( | WeeeHelper | $weeeHelper, |
PriceCurrencyInterface | $priceCurrency, | ||
$sortOrder = null |
|||
) |
Constructor
WeeeHelper | $weeeHelper | |
PriceCurrencyInterface | $priceCurrency | |
int | $sortOrder |
Definition at line 51 of file Adjustment.php.
applyAdjustment | ( | $amount, | |
SaleableInterface | $saleableItem, | ||
$context = [] |
|||
) |
Apply adjustment amount and return result value
float | $amount | |
SaleableInterface | $saleableItem | |
null | array | $context |
Implements AdjustmentInterface.
Definition at line 117 of file Adjustment.php.
extractAdjustment | ( | $amount, | |
SaleableInterface | $saleableItem, | ||
$context = [] |
|||
) |
Extract adjustment amount from the given amount value
float | $amount | |
SaleableInterface | $saleableItem | |
null | array | $context |
Implements AdjustmentInterface.
Definition at line 104 of file Adjustment.php.
getAdjustmentCode | ( | ) |
Get adjustment code
Implements AdjustmentInterface.
Definition at line 63 of file Adjustment.php.
|
protected |
Obtain amount
SaleableInterface | $saleableItem |
Definition at line 143 of file Adjustment.php.
getSortOrder | ( | ) |
Return sort order position
Implements AdjustmentInterface.
Definition at line 155 of file Adjustment.php.
isExcludedWith | ( | $adjustmentCode | ) |
Check if adjustment should be excluded from calculations along with the given adjustment
string | $adjustmentCode |
Implements AdjustmentInterface.
Definition at line 131 of file Adjustment.php.
isIncludedInBasePrice | ( | ) |
Define if adjustment is included in base price (FPT is excluded from base price)
Implements AdjustmentInterface.
Definition at line 74 of file Adjustment.php.
isIncludedInDisplayPrice | ( | ) |
Define if adjustment is included in display price
Implements AdjustmentInterface.
Definition at line 84 of file Adjustment.php.
|
protected |
Definition at line 42 of file Adjustment.php.
|
protected |
Definition at line 37 of file Adjustment.php.
|
protected |
Definition at line 30 of file Adjustment.php.
const ADJUSTMENT_CODE = 'weee' |
Adjustment code weee
Definition at line 23 of file Adjustment.php.