TransWikia.com

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!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP