Log in
Model

Config

Magento\Tax\Model\Config

What it does

This class manages all tax configuration settings for Magento 2, including whether prices include tax, how taxes should be displayed in the cart and on sales pages, discount calculations, and shipping tax settings.

Developers use this class to retrieve tax configuration values when calculating or displaying prices, taxes, and discounts throughout the store.

Public Methods

  • priceIncludesTax()
  • setPriceIncludesTax()
  • applyTaxAfterDiscount()
  • getPriceDisplayType()
  • discountTax()
  • getCalculationSequence()
  • setNeedUseShippingExcludeTax()
  • getNeedUseShippingExcludeTax()
  • getAlgorithm()
  • getShippingTaxClass()
  • getShippingPriceDisplayType()
  • shippingPriceIncludesTax()
  • setShippingPriceIncludeTax()
  • displayCartPricesInclTax()
  • displayCartPricesExclTax()
  • displayCartPricesBoth()
  • displayCartSubtotalInclTax()
  • displayCartSubtotalExclTax()
  • displayCartSubtotalBoth()
  • displayCartShippingInclTax()
  • displayCartShippingExclTax()
  • displayCartShippingBoth()
  • displayCartDiscountInclTax()
  • displayCartDiscountExclTax()
  • displayCartDiscountBoth()
  • displayCartTaxWithGrandTotal()
  • displayCartFullSummary()
  • displayCartZeroTax()
  • displaySalesPricesInclTax()
  • displaySalesPricesExclTax()
  • displaySalesPricesBoth()
  • displaySalesSubtotalInclTax()
  • displaySalesSubtotalExclTax()
  • displaySalesSubtotalBoth()
  • displaySalesShippingInclTax()
  • displaySalesShippingExclTax()
  • displaySalesShippingBoth()
  • displaySalesDiscountInclTax()
  • displaySalesDiscountExclTax()
  • displaySalesDiscountBoth()
  • displaySalesTaxWithGrandTotal()
  • displaySalesFullSummary()
  • displaySalesZeroTax()
  • crossBorderTradeEnabled()
  • isWrongApplyDiscountSettingIgnored()
  • isWrongDisplaySettingsIgnored()
  • isWrongDiscountSettingsIgnored()
  • getInfoUrl()
  • needPriceConversion()
  • _resetState()