This pull request fixes an issue with the {{ sc:cart:shipping_total_with_tax }} tag when the shipping tax rate has the "Price includes tax" toggle enabled.
Previous to this fix, both shipping_total and shipping_total_with_tax were returning the shipping total amount excluding tax.
This was happening because the raw shipping_total value has tax deducted from it in the ShippingTaxCalculator, and in the shippingTotalWithTax method we were presuming it would include tax when the price includes tax setting was enabled.
This pull request fixes an issue with the
{{ sc:cart:shipping_total_with_tax }}
tag when the shipping tax rate has the "Price includes tax" toggle enabled.Previous to this fix, both
shipping_total
andshipping_total_with_tax
were returning the shipping total amount excluding tax.This was happening because the raw
shipping_total
value has tax deducted from it in theShippingTaxCalculator
, and in theshippingTotalWithTax
method we were presuming it would include tax when the price includes tax setting was enabled.Related: #1065