Commerce: are Shipping prices always assumed to include tax?

Craft CMS Asked on November 25, 2021

A client is asking if the order calculation can show a 20% tax calculation on the shipping price.

From looking through Commerce 3, it seems this isn’t possible, eg Shipping prices are always assumed to be inclusive of tax?

One Answer

We fixed this by doing three things...

  1. On our tax rate, setting "Taxable Subject" to "Order total taxable price (Line item subtotal + Total discounts + Total shipping)"
  2. Also on our tax rate, turning on the "Is this tax is already included in the taxable subject?" switch.
  3. In our templates, wherever tax is displayed, changing from {{getTotalTax}} to {{getTotalTaxIncluded}} — eg to display the total tax (included) on a basket for both line items and shipping you'd want something like {{ cart.getTotalTaxIncluded('tax')|commerceCurrency(cart.currency) }}

enter image description here

enter image description here

Answered by James Greig on November 25, 2021

Add your own answers!

Related Questions

Prevent adding users with same email addresses

1  Asked on January 16, 2021 by mato


Looping on the User Field added to Entry

1  Asked on January 15, 2021 by dan-lee


Path to asset file shows “Template not found!”

0  Asked on January 12, 2021 by ichigo


Can’t enable plugins

0  Asked on January 12, 2021


Craft Nitro PHP extension ext-zip * is missing

1  Asked on January 11, 2021


photo processing python

0  Asked on January 11, 2021 by leonidk


Getting unique values from Smart Map addresses

1  Asked on January 10, 2021 by eric-snyder


Front End Search Related Entries

1  Asked on January 4, 2021


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir