Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (TaxHelper $taxHelper, \Magento\Catalog\Helper\Data $catalogHelper, $sortOrder=null) | |
getAdjustmentCode () | |
isIncludedInBasePrice () | |
isIncludedInDisplayPrice () | |
extractAdjustment ($amount, SaleableInterface $saleableItem, $context=[]) | |
applyAdjustment ($amount, SaleableInterface $saleableItem, $context=[]) | |
isExcludedWith ($adjustmentCode) | |
getSortOrder () | |
Data Fields | |
const | ADJUSTMENT_CODE = 'tax' |
Protected Attributes | |
$taxHelper | |
$catalogHelper | |
$sortOrder | |
Tax pricing adjustment model
Definition at line 16 of file Adjustment.php.
__construct | ( | TaxHelper | $taxHelper, |
\Magento\Catalog\Helper\Data | $catalogHelper, | ||
$sortOrder = null |
|||
) |
TaxHelper | $taxHelper | |
\Magento\Catalog\Helper\Data | $catalogHelper | |
int | null | $sortOrder |
Definition at line 45 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 119 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 90 of file Adjustment.php.
getAdjustmentCode | ( | ) |
Get adjustment code
Implements AdjustmentInterface.
Definition at line 57 of file Adjustment.php.
getSortOrder | ( | ) |
Return sort order position
Implements AdjustmentInterface.
Definition at line 150 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 140 of file Adjustment.php.
isIncludedInBasePrice | ( | ) |
Define if adjustment is included in base price
Implements AdjustmentInterface.
Definition at line 67 of file Adjustment.php.
isIncludedInDisplayPrice | ( | ) |
Define if adjustment is included in display price
Implements AdjustmentInterface.
Definition at line 77 of file Adjustment.php.
|
protected |
Definition at line 33 of file Adjustment.php.
|
protected |
Definition at line 38 of file Adjustment.php.
|
protected |
Definition at line 26 of file Adjustment.php.
const ADJUSTMENT_CODE = 'tax' |
Adjustment code tax
Definition at line 21 of file Adjustment.php.