Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Data Fields | |
const | XML_PATH_TAX_NOTIFICATION_IGNORE_DISCOUNT = 'tax/notification/ignore_discount' |
const | XML_PATH_TAX_NOTIFICATION_IGNORE_PRICE_DISPLAY = 'tax/notification/ignore_price_display' |
const | XML_PATH_TAX_NOTIFICATION_IGNORE_APPLY_DISCOUNT = 'tax/notification/ignore_apply_discount' |
const | XML_PATH_TAX_NOTIFICATION_INFO_URL = 'tax/notification/info_url' |
const | CONFIG_XML_PATH_SHIPPING_TAX_CLASS = 'tax/classes/shipping_tax_class' |
const | CONFIG_XML_PATH_PRICE_INCLUDES_TAX = 'tax/calculation/price_includes_tax' |
const | CONFIG_XML_PATH_SHIPPING_INCLUDES_TAX = 'tax/calculation/shipping_includes_tax' |
const | CONFIG_XML_PATH_BASED_ON = 'tax/calculation/based_on' |
const | CONFIG_XML_PATH_APPLY_ON = 'tax/calculation/apply_tax_on' |
const | CONFIG_XML_PATH_APPLY_AFTER_DISCOUNT = 'tax/calculation/apply_after_discount' |
const | CONFIG_XML_PATH_DISCOUNT_TAX = 'tax/calculation/discount_tax' |
const | XML_PATH_ALGORITHM = 'tax/calculation/algorithm' |
const | CONFIG_XML_PATH_CROSS_BORDER_TRADE_ENABLED = 'tax/calculation/cross_border_trade_enabled' |
const | CONFIG_XML_PATH_DEFAULT_COUNTRY = 'tax/defaults/country' |
const | CONFIG_XML_PATH_DEFAULT_REGION = 'tax/defaults/region' |
const | CONFIG_XML_PATH_DEFAULT_POSTCODE = 'tax/defaults/postcode' |
const | CONFIG_XML_PATH_PRICE_DISPLAY_TYPE = 'tax/display/type' |
const | CONFIG_XML_PATH_DISPLAY_SHIPPING = 'tax/display/shipping' |
const | XML_PATH_DISPLAY_CART_PRICE = 'tax/cart_display/price' |
const | XML_PATH_DISPLAY_CART_SUBTOTAL = 'tax/cart_display/subtotal' |
const | XML_PATH_DISPLAY_CART_SHIPPING = 'tax/cart_display/shipping' |
const | XML_PATH_DISPLAY_CART_DISCOUNT = 'tax/cart_display/discount' |
const | XML_PATH_DISPLAY_CART_GRANDTOTAL = 'tax/cart_display/grandtotal' |
const | XML_PATH_DISPLAY_CART_FULL_SUMMARY = 'tax/cart_display/full_summary' |
const | XML_PATH_DISPLAY_CART_ZERO_TAX = 'tax/cart_display/zero_tax' |
const | XML_PATH_DISPLAY_SALES_PRICE = 'tax/sales_display/price' |
const | XML_PATH_DISPLAY_SALES_SUBTOTAL = 'tax/sales_display/subtotal' |
const | XML_PATH_DISPLAY_SALES_SHIPPING = 'tax/sales_display/shipping' |
const | XML_PATH_DISPLAY_SALES_DISCOUNT = 'tax/sales_display/discount' |
const | XML_PATH_DISPLAY_SALES_GRANDTOTAL = 'tax/sales_display/grandtotal' |
const | XML_PATH_DISPLAY_SALES_FULL_SUMMARY = 'tax/sales_display/full_summary' |
const | XML_PATH_DISPLAY_SALES_ZERO_TAX = 'tax/sales_display/zero_tax' |
const | CALCULATION_STRING_SEPARATOR = '|' |
const | DISPLAY_TYPE_EXCLUDING_TAX = 1 |
const | DISPLAY_TYPE_INCLUDING_TAX = 2 |
const | DISPLAY_TYPE_BOTH = 3 |
const | PRICE_CONVERSION_PLUS = 1 |
const | PRICE_CONVERSION_MINUS = 2 |
Protected Attributes | |
$_priceIncludesTax = null | |
$_needUseShippingExcludeTax = false | |
$_shippingPriceIncludeTax = null | |
$_scopeConfig | |
@SuppressWarnings(PHPMD.ExcessivePublicCount)
Definition at line 19 of file Config.php.
__construct | ( | \Magento\Framework\App\Config\ScopeConfigInterface | $scopeConfig | ) |
\Magento\Framework\App\Config\ScopeConfigInterface | $scopeConfig |
Definition at line 145 of file Config.php.
applyTaxAfterDiscount | ( | $store = null | ) |
Check what taxes should be applied after discount
null | string | bool | int | Store | $store |
Definition at line 190 of file Config.php.
crossBorderTradeEnabled | ( | $store = null | ) |
Return the config value for self::CONFIG_XML_PATH_CROSS_BORDER_TRADE_ENABLED
null | string | bool | int | Store | $store |
Definition at line 757 of file Config.php.
discountTax | ( | $store = null | ) |
Get configuration setting "Apply Discount On Prices Including Tax" value
null | string | bool | int | Store | $store |
Definition at line 223 of file Config.php.
displayCartDiscountBoth | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 505 of file Config.php.
displayCartDiscountExclTax | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 491 of file Config.php.
displayCartDiscountInclTax | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 477 of file Config.php.
displayCartFullSummary | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 531 of file Config.php.
displayCartPricesBoth | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 385 of file Config.php.
displayCartPricesExclTax | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 372 of file Config.php.
displayCartPricesInclTax | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 359 of file Config.php.
displayCartShippingBoth | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 463 of file Config.php.
displayCartShippingExclTax | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 450 of file Config.php.
displayCartShippingInclTax | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 437 of file Config.php.
displayCartSubtotalBoth | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 424 of file Config.php.
displayCartSubtotalExclTax | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 411 of file Config.php.
displayCartSubtotalInclTax | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 398 of file Config.php.
displayCartTaxWithGrandTotal | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 518 of file Config.php.
displayCartZeroTax | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 544 of file Config.php.
displaySalesDiscountBoth | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 703 of file Config.php.
displaySalesDiscountExclTax | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 689 of file Config.php.
displaySalesDiscountInclTax | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 675 of file Config.php.
displaySalesFullSummary | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 729 of file Config.php.
displaySalesPricesBoth | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 583 of file Config.php.
displaySalesPricesExclTax | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 570 of file Config.php.
displaySalesPricesInclTax | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 557 of file Config.php.
displaySalesShippingBoth | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 661 of file Config.php.
displaySalesShippingExclTax | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 648 of file Config.php.
displaySalesShippingInclTax | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 635 of file Config.php.
displaySalesSubtotalBoth | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 622 of file Config.php.
displaySalesSubtotalExclTax | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 609 of file Config.php.
displaySalesSubtotalInclTax | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 596 of file Config.php.
displaySalesTaxWithGrandTotal | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 716 of file Config.php.
displaySalesZeroTax | ( | $store = null | ) |
null | string | bool | int | Store | $store |
Definition at line 742 of file Config.php.
getAlgorithm | ( | $store = null | ) |
Get defined tax calculation algorithm
null | string | bool | int | Store | $store |
Definition at line 286 of file Config.php.
getCalculationSequence | ( | $store = null | ) |
Get taxes/discounts calculation sequence. This sequence depends on "Apply Customer Tax" and "Apply Discount On Prices" configuration options.
null | int | string | Store | $store |
Definition at line 239 of file Config.php.
getInfoUrl | ( | $store = null | ) |
Return the notification info url
null | string | bool | int | Store | $store |
Definition at line 821 of file Config.php.
getNeedUseShippingExcludeTax | ( | ) |
Get flag what we need use shipping price exclude tax
Definition at line 275 of file Config.php.
getPriceDisplayType | ( | $store = null | ) |
Get product price display type 1 - Excluding tax 2 - Including tax 3 - Both
null | string | bool | int | Store | $store |
Definition at line 208 of file Config.php.
getShippingPriceDisplayType | ( | $store = null | ) |
Get shipping methods prices display type
null | string | bool | int | Store | $store |
Definition at line 316 of file Config.php.
getShippingTaxClass | ( | $store = null | ) |
Get tax class id specified for shipping tax estimation
null | string | bool | int | Store | $store |
Definition at line 301 of file Config.php.
isWrongApplyDiscountSettingIgnored | ( | $store = null | ) |
Check if admin notification related to misconfiguration of "Apply Discount On Prices" should be ignored.
Warning is displayed in case when "Catalog Prices" = "Excluding Tax" AND "Apply Discount On Prices" = "Including Tax" AND "Apply Customer Tax" = "After Discount"
null | string | Store | $store |
Definition at line 776 of file Config.php.
isWrongDiscountSettingsIgnored | ( | $store = null | ) |
Check if do not show notification about wrong discount settings
null | string | bool | int | Store | $store |
Definition at line 806 of file Config.php.
isWrongDisplaySettingsIgnored | ( | $store = null | ) |
Check if do not show notification about wrong display settings
null | string | bool | int | Store | $store |
Definition at line 791 of file Config.php.
needPriceConversion | ( | $store = null | ) |
Check if necessary do product price conversion If it necessary will be returned conversion type (minus or plus)
null | int | string | Store | $store |
Definition at line 838 of file Config.php.
priceIncludesTax | ( | $store = null | ) |
Check if prices of product in catalog include tax
null | string | bool | int | Store | $store |
Definition at line 156 of file Config.php.
setNeedUseShippingExcludeTax | ( | $flag | ) |
Specify flag what we need use shipping price exclude tax
bool | $flag |
Definition at line 263 of file Config.php.
setPriceIncludesTax | ( | $value | ) |
Override "price includes tax" variable regardless of system configuration of any store
bool | null | $value |
Definition at line 174 of file Config.php.
setShippingPriceIncludeTax | ( | $flag | ) |
Declare shipping prices type
bool | $flag |
Definition at line 349 of file Config.php.
shippingPriceIncludesTax | ( | $store = null | ) |
Check if shipping prices include tax
null | string | bool | int | Store | $store |
Definition at line 331 of file Config.php.
|
protected |
Definition at line 128 of file Config.php.
|
protected |
Definition at line 121 of file Config.php.
|
protected |
Definition at line 140 of file Config.php.
|
protected |
Definition at line 133 of file Config.php.
const CALCULATION_STRING_SEPARATOR = '|' |
Definition at line 100 of file Config.php.
const CONFIG_XML_PATH_APPLY_AFTER_DISCOUNT = 'tax/calculation/apply_after_discount' |
Definition at line 42 of file Config.php.
const CONFIG_XML_PATH_APPLY_ON = 'tax/calculation/apply_tax_on' |
Definition at line 40 of file Config.php.
const CONFIG_XML_PATH_BASED_ON = 'tax/calculation/based_on' |
Definition at line 38 of file Config.php.
const CONFIG_XML_PATH_CROSS_BORDER_TRADE_ENABLED = 'tax/calculation/cross_border_trade_enabled' |
Definition at line 48 of file Config.php.
const CONFIG_XML_PATH_DEFAULT_COUNTRY = 'tax/defaults/country' |
Definition at line 51 of file Config.php.
const CONFIG_XML_PATH_DEFAULT_POSTCODE = 'tax/defaults/postcode' |
Definition at line 55 of file Config.php.
const CONFIG_XML_PATH_DEFAULT_REGION = 'tax/defaults/region' |
Definition at line 53 of file Config.php.
const CONFIG_XML_PATH_DISCOUNT_TAX = 'tax/calculation/discount_tax' |
Definition at line 44 of file Config.php.
const CONFIG_XML_PATH_DISPLAY_SHIPPING = 'tax/display/shipping' |
Definition at line 62 of file Config.php.
const CONFIG_XML_PATH_PRICE_DISPLAY_TYPE = 'tax/display/type' |
Prices display settings
Definition at line 60 of file Config.php.
const CONFIG_XML_PATH_PRICE_INCLUDES_TAX = 'tax/calculation/price_includes_tax' |
Definition at line 34 of file Config.php.
const CONFIG_XML_PATH_SHIPPING_INCLUDES_TAX = 'tax/calculation/shipping_includes_tax' |
Definition at line 36 of file Config.php.
const CONFIG_XML_PATH_SHIPPING_TAX_CLASS = 'tax/classes/shipping_tax_class' |
Definition at line 31 of file Config.php.
const DISPLAY_TYPE_BOTH = 3 |
Definition at line 106 of file Config.php.
const DISPLAY_TYPE_EXCLUDING_TAX = 1 |
Definition at line 102 of file Config.php.
const DISPLAY_TYPE_INCLUDING_TAX = 2 |
Definition at line 104 of file Config.php.
const PRICE_CONVERSION_MINUS = 2 |
Price conversion constant for negative
Definition at line 116 of file Config.php.
const PRICE_CONVERSION_PLUS = 1 |
Price conversion constant for positive
Definition at line 111 of file Config.php.
const XML_PATH_ALGORITHM = 'tax/calculation/algorithm' |
Definition at line 46 of file Config.php.
const XML_PATH_DISPLAY_CART_DISCOUNT = 'tax/cart_display/discount' |
Definition at line 74 of file Config.php.
const XML_PATH_DISPLAY_CART_FULL_SUMMARY = 'tax/cart_display/full_summary' |
Definition at line 78 of file Config.php.
const XML_PATH_DISPLAY_CART_GRANDTOTAL = 'tax/cart_display/grandtotal' |
Definition at line 76 of file Config.php.
const XML_PATH_DISPLAY_CART_PRICE = 'tax/cart_display/price' |
Shopping cart display settings
Definition at line 67 of file Config.php.
const XML_PATH_DISPLAY_CART_SHIPPING = 'tax/cart_display/shipping' |
Definition at line 71 of file Config.php.
const XML_PATH_DISPLAY_CART_SUBTOTAL = 'tax/cart_display/subtotal' |
Definition at line 69 of file Config.php.
const XML_PATH_DISPLAY_CART_ZERO_TAX = 'tax/cart_display/zero_tax' |
Definition at line 80 of file Config.php.
const XML_PATH_DISPLAY_SALES_DISCOUNT = 'tax/sales_display/discount' |
Definition at line 92 of file Config.php.
const XML_PATH_DISPLAY_SALES_FULL_SUMMARY = 'tax/sales_display/full_summary' |
Definition at line 96 of file Config.php.
const XML_PATH_DISPLAY_SALES_GRANDTOTAL = 'tax/sales_display/grandtotal' |
Definition at line 94 of file Config.php.
const XML_PATH_DISPLAY_SALES_PRICE = 'tax/sales_display/price' |
Shopping cart display settings
Definition at line 85 of file Config.php.
const XML_PATH_DISPLAY_SALES_SHIPPING = 'tax/sales_display/shipping' |
Definition at line 89 of file Config.php.
const XML_PATH_DISPLAY_SALES_SUBTOTAL = 'tax/sales_display/subtotal' |
Definition at line 87 of file Config.php.
const XML_PATH_DISPLAY_SALES_ZERO_TAX = 'tax/sales_display/zero_tax' |
Definition at line 98 of file Config.php.
const XML_PATH_TAX_NOTIFICATION_IGNORE_APPLY_DISCOUNT = 'tax/notification/ignore_apply_discount' |
Definition at line 26 of file Config.php.
const XML_PATH_TAX_NOTIFICATION_IGNORE_DISCOUNT = 'tax/notification/ignore_discount' |
Definition at line 22 of file Config.php.
const XML_PATH_TAX_NOTIFICATION_IGNORE_PRICE_DISPLAY = 'tax/notification/ignore_price_display' |
Definition at line 24 of file Config.php.
const XML_PATH_TAX_NOTIFICATION_INFO_URL = 'tax/notification/info_url' |
Definition at line 28 of file Config.php.