Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (WeeeHelper $weeeHelper, TaxHelper $taxHelper, 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_tax' |
Protected Member Functions | |
getAmount (SaleableInterface $saleableItem) | |
Protected Attributes | |
$weeeHelper | |
$taxHelper | |
$sortOrder | |
$priceCurrency | |
Weee tax pricing adjustment
Definition at line 19 of file TaxAdjustment.php.
__construct | ( | WeeeHelper | $weeeHelper, |
TaxHelper | $taxHelper, | ||
PriceCurrencyInterface | $priceCurrency, | ||
$sortOrder = null |
|||
) |
Constructor
WeeeHelper | $weeeHelper | |
TaxHelper | $taxHelper | |
PriceCurrencyInterface | $priceCurrency | |
int | $sortOrder |
Definition at line 58 of file TaxAdjustment.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 132 of file TaxAdjustment.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 119 of file TaxAdjustment.php.
getAdjustmentCode | ( | ) |
Get adjustment code
Implements AdjustmentInterface.
Definition at line 75 of file TaxAdjustment.php.
|
protected |
Obtain amount
SaleableInterface | $saleableItem |
Definition at line 158 of file TaxAdjustment.php.
getSortOrder | ( | ) |
Return sort order position
Implements AdjustmentInterface.
Definition at line 176 of file TaxAdjustment.php.
isExcludedWith | ( | $adjustmentCode | ) |
Check if adjustment should be excluded from calculations along with the given adjustment
string | $adjustmentCode |
Implements AdjustmentInterface.
Definition at line 146 of file TaxAdjustment.php.
isIncludedInBasePrice | ( | ) |
Define if adjustment is included in base price (FPT is excluded from base price)
Implements AdjustmentInterface.
Definition at line 86 of file TaxAdjustment.php.
isIncludedInDisplayPrice | ( | ) |
Define if adjustment is included in display price
Implements AdjustmentInterface.
Definition at line 96 of file TaxAdjustment.php.
|
protected |
Definition at line 48 of file TaxAdjustment.php.
|
protected |
Definition at line 43 of file TaxAdjustment.php.
|
protected |
Definition at line 36 of file TaxAdjustment.php.
|
protected |
Definition at line 31 of file TaxAdjustment.php.
const ADJUSTMENT_CODE = 'weee_tax' |
Adjustment code weee
Definition at line 24 of file TaxAdjustment.php.