<p>Currently there is a caveat, that order level shipping costs can not have tax applied to them. </p>

<p>This means if you have any 'base shipping costs' applied  to the cart the tax engine can not see them because they are not on a line item. Currently the tax adjuster system only adds tax to line items.</p>

<p>This is an issue that will be fixed in a future release but will mean there needs to be a change to the way the adjustment system works. We would need to allow tax to be added to adjustments. </p>

<p>If you want tax on shipping cost you would need to make all shipping rules only add tax to line items. Let me know if you have further questions and I will update my answer. </p>

<p>UPDATE: see other answer for the final solution.</p>

CC BY-SA 3.0
2016-07-05T08:28:19.613Z
Hi Luke, Thanks for your reply. Do you know when that might be released?

To complicate it further some companies will take into account the Tax code. Example "If customer has tax code and in Europe then apply tax to shipping". How can I add that logic in to work with shipping rules? I guess it exists to a point when you select country which then changes the shipping rule.


Something to keep in mind when making the update.
Dan Lee
CC BY-SA 3.0
2016-08-17T17:10:42.437Z
This is a problem I am also facing at the moment. Any ideas when this enhancement might be available or if there is a reasonable way to circumvent this at the moment? I am only dealing with VAT and so it is set at a fixed 20% which might make things a little easier?
Terry Upton
CC BY-SA 3.0
2016-10-12T10:19:00.570Z
Any fix for this?
Paul
CC BY-SA 3.0
2016-10-12T12:44:21.970Z
@PaulVerheul not in 1.2 - Working on a work-around.
Luke Holder
CC BY-SA 3.0
2016-11-29T23:14:36.027Z
Any word the work-around? This is sort of important, what with being less than a week away from launch and stumbling upon this reality now. A thousand thank you's for any help
Stian Karlsen
CC BY-SA 3.0
2017-04-11T10:48:27.180Z
@StianKarlsen work around is in place, see answer below.
Luke Holder
CC BY-SA 3.0
2016-07-04T23:34:15.047Z
2017-07-11T04:44:07.043Z
2017-07-11T04:44:07.043Z
Luke Holder
<p>A tax rate set to 'price + shipping' only places tax on the line items, and does not take into account the <code>baseShippingCost</code>, this includes the changes to the <code>baseShippingCost</code> caused by the minimum and maximum shipping cost rules.</p>

<p>I have gone ahead and added 2 new taxable subjects to shipping rates in order to fix this limitation.</p>

<p>1) Order total shipping cost.</p>

<p>2) Order total price. </p>

<p><a href="https://i.sstatic.net/WOByW.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/WOByW.png" alt="screenshot of new options"></a></p>

<p>These shipping rates are order level taxes, so the tax category can not be taken into account (it is a line item/product level attribute), but this should allow you to set taxes on shipping on the order as a whole and avoid using the 'item + shipping'  line item option.</p>

<p>It will be in the next release, due out in a couple of days.</p>

CC BY-SA 3.0
2017-04-11T10:33:43.723Z
2017-04-11T10:39:38.667Z
2017-04-11T10:39:38.667Z
Luke Holder
<p>There is an option when setting up Tax Rates to apply the tax to "<strong>both (item + shipping costs)</strong>" however when testing on the front end the shipping cost is added after tax is applied to the product and no tax percentage is applied to the shipping cost. </p>

<p>The total amount payable is <em>(Product + Tax) + Shipping</em>. I want <em>(Product + Shipping) + Tax</em>. </p>

<p>Is there more configuration needed so that the adjustments show correctly at checkout and the customer is charged the right amount?</p>

<plugin-craftcommerce>
Craft Commerce: Calculating (Product + Shipping) + Tax?
# Craft Commerce: Calculating (Product + Shipping) + Tax?

(Asked by: username_0 on 2016-07-04)

There is an option when setting up Tax Rates to apply the tax to "**both (item + shipping costs)**" however when testing on the front end the shipping cost is added after tax is applied to the product and no tax percentage is applied to the shipping cost.

The total amount payable is *(Product + Tax) + Shipping*. I want *(Product + Shipping) + Tax*.

Is there more configuration needed so that the adjustments show correctly at checkout and the customer is charged the right amount?

**Tags:** plugin-craftcommerce

---

## 2 answers

### Answer by username_1 on 2016-07-04. Score: 3

Currently there is a caveat, that order level shipping costs can not have tax applied to them.

This means if you have any 'base shipping costs' applied to the cart the tax engine can not see them because they are not on a line item. Currently the tax adjuster system only adds tax to line items.

This is an issue that will be fixed in a future release but will mean there needs to be a change to the way the adjustment system works. We would need to allow tax to be added to adjustments.

If you want tax on shipping cost you would need to make all shipping rules only add tax to line items. Let me know if you have further questions and I will update my answer.

UPDATE: see other answer for the final solution.

> **Comments:**
> **username_0**: Hi Luke, Thanks for your reply. Do you know when that might be released?  To complicate it further some companies will take into account the Tax code. Example "If customer has tax code and in Europe then apply tax to shipping". How can I add that logic in to work with shipping rules? I guess it exists to a point when you select country which then changes the shipping rule.   Something to keep in mind when making the update.  
> **username_2**: This is a problem I am also facing at the moment. Any ideas when this enhancement might be available or if there is a reasonable way to circumvent this at the moment? I am only dealing with VAT and so it is set at a fixed 20% which might make things a little easier?  
> **username_3**: Any fix for this?  
> **username_1**: @PaulVerheul not in 1.2 - Working on a work-around.  
> **username_4**: Any word the work-around? This is sort of important, what with being less than a week away from launch and stumbling upon this reality now. A thousand thank you's for any help  
> **username_1**: @StianKarlsen work around is in place, see answer below.  

---

### Answer by username_1 on 2017-04-11. Score: 2

A tax rate set to 'price + shipping' only places tax on the line items, and does not take into account the `baseShippingCost`, this includes the changes to the `baseShippingCost` caused by the minimum and maximum shipping cost rules.

I have gone ahead and added 2 new taxable subjects to shipping rates in order to fix this limitation.

1) Order total shipping cost.

2) Order total price.

[![screenshot of new options](https://i.sstatic.net/WOByW.png)](https://i.sstatic.net/WOByW.png)

These shipping rates are order level taxes, so the tax category can not be taken into account (it is a line item/product level attribute), but this should allow you to set taxes on shipping on the order as a whole and avoid using the 'item + shipping' line item option.

It will be in the next release, due out in a couple of days.


---

