Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Data Fields | |
const | KEY_WEEE_AMOUNT_INVOICED = 'weee_amount_invoiced' |
const | KEY_BASE_WEEE_AMOUNT_INVOICED = 'base_weee_amount_invoiced' |
const | KEY_WEEE_TAX_AMOUNT_INVOICED = 'weee_tax_amount_invoiced' |
const | KEY_BASE_WEEE_TAX_AMOUNT_INVOICED = 'base_weee_tax_amount_invoiced' |
const | KEY_WEEE_AMOUNT_REFUNDED = 'weee_amount_refunded' |
const | KEY_BASE_WEEE_AMOUNT_REFUNDED = 'base_weee_amount_refunded' |
const | KEY_WEEE_TAX_AMOUNT_REFUNDED = 'weee_tax_amount_refunded' |
const | KEY_BASE_WEEE_TAX_AMOUNT_REFUNDED = 'base_weee_tax_amount_refunded' |
Protected Member Functions | |
getRecursiveNumericAmount ($item, $functionName) | |
![]() | |
_getRequest () | |
_getModuleName () | |
_getUrl ($route, $params=[]) | |
Protected Attributes | |
$_storeDisplayConfig = [] | |
$_coreRegistry | |
$_taxData | |
$_weeeTax | |
$_weeeConfig | |
$_storeManager | |
$cacheProductWeeeAmount = '_cache_product_weee_amount' | |
![]() | |
$_moduleName | |
$_request | |
$_moduleManager | |
$_logger | |
$_urlBuilder | |
$_httpHeader | |
$_eventManager | |
$_remoteAddress | |
$urlEncoder | |
$urlDecoder | |
$scopeConfig | |
$_cacheConfig | |
WEEE data helper
@SuppressWarnings(PHPMD.ExcessiveClassComplexity) @SuppressWarnings(PHPMD.CouplingBetweenObjects) @api
__construct | ( | \Magento\Framework\App\Helper\Context | $context, |
\Magento\Store\Model\StoreManagerInterface | $storeManager, | ||
\Magento\Weee\Model\Tax | $weeeTax, | ||
\Magento\Weee\Model\Config | $weeeConfig, | ||
\Magento\Tax\Helper\Data | $taxData, | ||
\Magento\Framework\Registry | $coreRegistry, | ||
\Magento\Framework\Serialize\Serializer\Json | $serializer = null |
||
) |
Data constructor.
\Magento\Framework\App\Helper\Context | $context | |
\Magento\Store\Model\StoreManagerInterface | $storeManager | |
\Magento\Weee\Model\Tax | $weeeTax | |
\Magento\Weee\Model\Config | $weeeConfig | |
\Magento\Tax\Helper\Data | $taxData | |
\Magento\Framework\Registry | $coreRegistry | |
\Magento\Framework\Serialize\Serializer\Json | null | $serializer |
Definition at line 99 of file Data.php.
displayTotalsInclTax | ( | $store = null | ) |
getApplied | ( | $item | ) |
getBaseRowWeeeTaxInclTax | ( | $item | ) |
getBaseTotalAmounts | ( | $items, | |
$store = null |
|||
) |
Returns the base total amount of FPT across all items. Used for displaying the FPT totals line item.
QuoteAbstractItem[] | $items | |
null | string | bool | int | Store | $store |
Definition at line 744 of file Data.php.
getBaseTotalTaxAppliedForWeeeTax | ( | $item | ) |
getBaseWeeeAmountInvoiced | ( | $orderItem | ) |
OrderItem | $orderItem |
Definition at line 600 of file Data.php.
getBaseWeeeAmountRefunded | ( | $orderItem | ) |
OrderItem | $orderItem |
Definition at line 668 of file Data.php.
getBaseWeeeTaxAmountInvoiced | ( | $orderItem | ) |
OrderItem | $orderItem |
Definition at line 634 of file Data.php.
getBaseWeeeTaxAmountRefunded | ( | $orderItem | ) |
OrderItem | $orderItem |
Definition at line 702 of file Data.php.
getBaseWeeeTaxAppliedRowAmount | ( | $item | ) |
Returns applied base weee tax amount for the row
QuoteAbstractItem | OrderItem | $item |
Definition at line 343 of file Data.php.
getBaseWeeeTaxInclTax | ( | $item | ) |
getEmailPriceDisplayType | ( | $store = null | ) |
getListPriceDisplayType | ( | $store = null | ) |
getPriceDisplayType | ( | $store = null | ) |
getProductWeeeAttributes | ( | $product, | |
$shipping = null , |
|||
$billing = null , |
|||
$website = null , |
|||
$calculateTaxes = false , |
|||
$round = true |
|||
) |
Proxy for \Magento\Weee\Model\Tax::getProductWeeeAttributes()
\Magento\Catalog\Model\Product | $product | |
null | false | \Magento\Framework\DataObject | $shipping | |
null | false | \Magento\Framework\DataObject | $billing | |
Website | $website | |
bool | $calculateTaxes | |
bool | $round |
Definition at line 296 of file Data.php.
|
protected |
Returns accumulated amounts for the item
QuoteAbstractItem | OrderItem | $item | |
string | $functionName |
Definition at line 355 of file Data.php.
getRowWeeeTaxInclTax | ( | $item | ) |
getSalesPriceDisplayType | ( | $store = null | ) |
getTaxDisplayConfig | ( | $store = null | ) |
getTotalAmounts | ( | $items, | |
$store = null |
|||
) |
Returns the total amount of FPT across all items. Used for displaying the FPT totals line item.
QuoteAbstractItem[] | $items | |
null | string | bool | int | Store | $store |
Definition at line 722 of file Data.php.
getTotalTaxAppliedForWeeeTax | ( | $item | ) |
getWeeeAmountInvoiced | ( | $orderItem | ) |
OrderItem | $orderItem |
Definition at line 583 of file Data.php.
getWeeeAmountRefunded | ( | $orderItem | ) |
OrderItem | $orderItem |
Definition at line 651 of file Data.php.
getWeeeAttributesForBundle | ( | $product | ) |
Return an array of FPT attributes for a bundle product
\Magento\Catalog\Model\Product | $product |
Definition at line 835 of file Data.php.
getWeeeTaxAmountInvoiced | ( | $orderItem | ) |
OrderItem | $orderItem |
Definition at line 617 of file Data.php.
getWeeeTaxAmountRefunded | ( | $orderItem | ) |
OrderItem | $orderItem |
Definition at line 685 of file Data.php.
getWeeeTaxAppliedAmount | ( | $item | ) |
Returns applied weee tax amount
QuoteAbstractItem | $item |
Definition at line 320 of file Data.php.
getWeeeTaxAppliedRowAmount | ( | $item | ) |
Returns applied weee tax amount for the row
QuoteAbstractItem | $item |
Definition at line 331 of file Data.php.
getWeeeTaxInclTax | ( | $item | ) |
includeInSubtotal | ( | $store = null | ) |
isDisplayExcl | ( | $storeId = null | ) |
Get FPT DISPLAY_EXCL setting
int | null | $storeId |
Definition at line 809 of file Data.php.
isDisplayExclDescIncl | ( | $storeId = null | ) |
Get FPT DISPLAY_EXCL_DESCR_INCL setting
int | null | $storeId |
Definition at line 794 of file Data.php.
isDisplayIncl | ( | $storeId = null | ) |
Get FPT DISPLAY_INCL setting
int | null | $storeId |
Definition at line 764 of file Data.php.
isDisplayInclDesc | ( | $storeId = null | ) |
Get FPT DISPLAY_INCL_DESCR setting
int | null | $storeId |
Definition at line 779 of file Data.php.
isEnabled | ( | $store = null | ) |
isTaxable | ( | $store = null | ) |
setApplied | ( | $item, | |
$value | |||
) |
typeOfDisplay | ( | $compareTo = null , |
|
$zone = \Magento\Framework\Pricing\Render::ZONE_DEFAULT , |
|||
$store = null |
|||
) |
Returns display type for price accordingly to current zone
int|int[]|null | $compareTo | |
string | $zone | |
Store | int | string | $store |
Definition at line 243 of file Data.php.
|
protected |
const KEY_BASE_WEEE_AMOUNT_INVOICED = 'base_weee_amount_invoiced' |
const KEY_BASE_WEEE_AMOUNT_REFUNDED = 'base_weee_amount_refunded' |
const KEY_BASE_WEEE_TAX_AMOUNT_INVOICED = 'base_weee_tax_amount_invoiced' |
const KEY_BASE_WEEE_TAX_AMOUNT_REFUNDED = 'base_weee_tax_amount_refunded' |
const KEY_WEEE_AMOUNT_INVOICED = 'weee_amount_invoiced' |
const KEY_WEEE_TAX_AMOUNT_INVOICED = 'weee_tax_amount_invoiced' |
const KEY_WEEE_TAX_AMOUNT_REFUNDED = 'weee_tax_amount_refunded' |