147 $this->_scopeConfig = $scopeConfig;
158 if (
null !== $this->_priceIncludesTax) {
161 return (
bool)$this->_scopeConfig->getValue(
162 self::CONFIG_XML_PATH_PRICE_INCLUDES_TAX,
177 $this->_priceIncludesTax =
null;
179 $this->_priceIncludesTax = (bool)
$value;
192 return (
bool)$this->_scopeConfig->getValue(
193 self::CONFIG_XML_PATH_APPLY_AFTER_DISCOUNT,
210 return (
int)$this->_scopeConfig->getValue(
211 self::CONFIG_XML_PATH_PRICE_DISPLAY_TYPE,
225 return (
int)$this->_scopeConfig->getValue(
226 self::CONFIG_XML_PATH_DISCOUNT_TAX,
265 $this->_needUseShippingExcludeTax = $flag;
288 return $this->_scopeConfig->getValue(
289 self::XML_PATH_ALGORITHM,
303 return (
int)$this->_scopeConfig->getValue(
304 self::CONFIG_XML_PATH_SHIPPING_TAX_CLASS,
318 return (
int)$this->_scopeConfig->getValue(
319 self::CONFIG_XML_PATH_DISPLAY_SHIPPING,
333 if ($this->_shippingPriceIncludeTax ===
null) {
334 $this->_shippingPriceIncludeTax = (bool)$this->_scopeConfig->getValue(
335 self::CONFIG_XML_PATH_SHIPPING_INCLUDES_TAX,
351 $this->_shippingPriceIncludeTax = $flag;
361 return $this->_scopeConfig->getValue(
362 self::XML_PATH_DISPLAY_CART_PRICE,
374 return $this->_scopeConfig->getValue(
375 self::XML_PATH_DISPLAY_CART_PRICE,
387 return $this->_scopeConfig->getValue(
388 self::XML_PATH_DISPLAY_CART_PRICE,
400 return $this->_scopeConfig->getValue(
401 self::XML_PATH_DISPLAY_CART_SUBTOTAL,
413 return $this->_scopeConfig->getValue(
414 self::XML_PATH_DISPLAY_CART_SUBTOTAL,
426 return $this->_scopeConfig->getValue(
427 self::XML_PATH_DISPLAY_CART_SUBTOTAL,
439 return $this->_scopeConfig->getValue(
440 self::XML_PATH_DISPLAY_CART_SHIPPING,
452 return $this->_scopeConfig->getValue(
453 self::XML_PATH_DISPLAY_CART_SHIPPING,
465 return $this->_scopeConfig->getValue(
466 self::XML_PATH_DISPLAY_CART_SHIPPING,
479 return $this->_scopeConfig->getValue(
480 self::XML_PATH_DISPLAY_CART_DISCOUNT,
493 return $this->_scopeConfig->getValue(
494 self::XML_PATH_DISPLAY_CART_DISCOUNT,
507 return $this->_scopeConfig->getValue(
508 self::XML_PATH_DISPLAY_CART_DISCOUNT,
520 return (
bool)$this->_scopeConfig->getValue(
521 self::XML_PATH_DISPLAY_CART_GRANDTOTAL,
533 return (
bool)$this->_scopeConfig->getValue(
534 self::XML_PATH_DISPLAY_CART_FULL_SUMMARY,
546 return (
bool)$this->_scopeConfig->getValue(
547 self::XML_PATH_DISPLAY_CART_ZERO_TAX,
559 return $this->_scopeConfig->getValue(
560 self::XML_PATH_DISPLAY_SALES_PRICE,
572 return $this->_scopeConfig->getValue(
573 self::XML_PATH_DISPLAY_SALES_PRICE,
585 return $this->_scopeConfig->getValue(
586 self::XML_PATH_DISPLAY_SALES_PRICE,
598 return $this->_scopeConfig->getValue(
599 self::XML_PATH_DISPLAY_SALES_SUBTOTAL,
611 return $this->_scopeConfig->getValue(
612 self::XML_PATH_DISPLAY_SALES_SUBTOTAL,
624 return $this->_scopeConfig->getValue(
625 self::XML_PATH_DISPLAY_SALES_SUBTOTAL,
637 return $this->_scopeConfig->getValue(
638 self::XML_PATH_DISPLAY_SALES_SHIPPING,
650 return $this->_scopeConfig->getValue(
651 self::XML_PATH_DISPLAY_SALES_SHIPPING,
663 return $this->_scopeConfig->getValue(
664 self::XML_PATH_DISPLAY_SALES_SHIPPING,
677 return $this->_scopeConfig->getValue(
678 self::XML_PATH_DISPLAY_SALES_DISCOUNT,
691 return $this->_scopeConfig->getValue(
692 self::XML_PATH_DISPLAY_SALES_DISCOUNT,
705 return $this->_scopeConfig->getValue(
706 self::XML_PATH_DISPLAY_SALES_DISCOUNT,
718 return (
bool)$this->_scopeConfig->getValue(
719 self::XML_PATH_DISPLAY_SALES_GRANDTOTAL,
731 return (
bool)$this->_scopeConfig->getValue(
732 self::XML_PATH_DISPLAY_SALES_FULL_SUMMARY,
744 return (
bool)$this->_scopeConfig->getValue(
745 self::XML_PATH_DISPLAY_SALES_ZERO_TAX,
759 return (
bool)$this->_scopeConfig->getValue(
760 self::CONFIG_XML_PATH_CROSS_BORDER_TRADE_ENABLED,
778 return (
bool)$this->_scopeConfig->getValue(
779 self::XML_PATH_TAX_NOTIFICATION_IGNORE_APPLY_DISCOUNT,
793 return (
bool)$this->_scopeConfig->getValue(
794 self::XML_PATH_TAX_NOTIFICATION_IGNORE_PRICE_DISPLAY,
808 return (
bool)$this->_scopeConfig->getValue(
809 self::XML_PATH_TAX_NOTIFICATION_IGNORE_DISCOUNT,
823 return (
string)$this->_scopeConfig->getValue(
824 self::XML_PATH_TAX_NOTIFICATION_INFO_URL,
842 if ($priceIncludesTax) {
866 if ($res ===
false) {
const XML_PATH_DISPLAY_CART_ZERO_TAX
const XML_PATH_DISPLAY_CART_FULL_SUMMARY
const CONFIG_XML_PATH_APPLY_AFTER_DISCOUNT
displaySalesDiscountExclTax($store=null)
displaySalesSubtotalInclTax($store=null)
displaySalesSubtotalExclTax($store=null)
displayCartSubtotalBoth($store=null)
getShippingTaxClass($store=null)
displayCartPricesBoth($store=null)
displaySalesPricesInclTax($store=null)
const CONFIG_XML_PATH_APPLY_ON
shippingPriceIncludesTax($store=null)
const CONFIG_XML_PATH_DEFAULT_POSTCODE
const XML_PATH_TAX_NOTIFICATION_IGNORE_PRICE_DISPLAY
const XML_PATH_DISPLAY_SALES_GRANDTOTAL
displaySalesPricesExclTax($store=null)
displayCartShippingBoth($store=null)
__construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig)
const XML_PATH_DISPLAY_CART_DISCOUNT
const CONFIG_XML_PATH_DEFAULT_REGION
const CONFIG_XML_PATH_DISCOUNT_TAX
const XML_PATH_DISPLAY_SALES_DISCOUNT
const CONFIG_XML_PATH_CROSS_BORDER_TRADE_ENABLED
const XML_PATH_DISPLAY_SALES_ZERO_TAX
const PRICE_CONVERSION_MINUS
displayCartShippingExclTax($store=null)
displayCartTaxWithGrandTotal($store=null)
const XML_PATH_DISPLAY_SALES_FULL_SUMMARY
priceIncludesTax($store=null)
const CONFIG_XML_PATH_SHIPPING_INCLUDES_TAX
const CALC_TAX_BEFORE_DISCOUNT_ON_INCL
const DISPLAY_TYPE_EXCLUDING_TAX
getShippingPriceDisplayType($store=null)
const XML_PATH_DISPLAY_CART_SHIPPING
getCalculationSequence($store=null)
const DISPLAY_TYPE_INCLUDING_TAX
const XML_PATH_TAX_NOTIFICATION_IGNORE_DISCOUNT
const CONFIG_XML_PATH_DEFAULT_COUNTRY
displaySalesSubtotalBoth($store=null)
displaySalesFullSummary($store=null)
displayCartDiscountInclTax($store=null)
const XML_PATH_TAX_NOTIFICATION_IGNORE_APPLY_DISCOUNT
displayCartSubtotalInclTax($store=null)
crossBorderTradeEnabled($store=null)
getPriceDisplayType($store=null)
getAlgorithm($store=null)
setPriceIncludesTax($value)
displaySalesShippingExclTax($store=null)
const XML_PATH_DISPLAY_SALES_PRICE
const PRICE_CONVERSION_PLUS
displaySalesPricesBoth($store=null)
displaySalesDiscountInclTax($store=null)
setNeedUseShippingExcludeTax($flag)
const CONFIG_XML_PATH_SHIPPING_TAX_CLASS
const XML_PATH_DISPLAY_CART_PRICE
isWrongDiscountSettingsIgnored($store=null)
const XML_PATH_DISPLAY_SALES_SUBTOTAL
displaySalesShippingInclTax($store=null)
displayCartFullSummary($store=null)
const CALCULATION_STRING_SEPARATOR
displaySalesDiscountBoth($store=null)
const CALC_TAX_BEFORE_DISCOUNT_ON_EXCL
const XML_PATH_DISPLAY_CART_SUBTOTAL
displaySalesShippingBoth($store=null)
displayCartDiscountExclTax($store=null)
const CONFIG_XML_PATH_PRICE_INCLUDES_TAX
const XML_PATH_TAX_NOTIFICATION_INFO_URL
needPriceConversion($store=null)
const CONFIG_XML_PATH_DISPLAY_SHIPPING
displaySalesZeroTax($store=null)
const XML_PATH_DISPLAY_SALES_SHIPPING
setShippingPriceIncludeTax($flag)
getNeedUseShippingExcludeTax()
const CONFIG_XML_PATH_BASED_ON
displayCartSubtotalExclTax($store=null)
$_needUseShippingExcludeTax
const CONFIG_XML_PATH_PRICE_DISPLAY_TYPE
const CALC_TAX_AFTER_DISCOUNT_ON_INCL
displaySalesTaxWithGrandTotal($store=null)
isWrongDisplaySettingsIgnored($store=null)
const CALC_TAX_AFTER_DISCOUNT_ON_EXCL
displayCartDiscountBoth($store=null)
displayCartPricesExclTax($store=null)
$_shippingPriceIncludeTax
displayCartZeroTax($store=null)
applyTaxAfterDiscount($store=null)
displayCartPricesInclTax($store=null)
isWrongApplyDiscountSettingIgnored($store=null)
const XML_PATH_DISPLAY_CART_GRANDTOTAL
displayCartShippingInclTax($store=null)