Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-05T08:28:19.613Z
Answers.Text: 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.
Answers.UserDisplayName: Dan Lee
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-17T17:10:42.437Z
Answers.Text: 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?
Answers.UserDisplayName: Terry Upton
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-12T10:19:00.570Z
Answers.Text: Any fix for this?
Answers.UserDisplayName: Paul
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-12T12:44:21.970Z
Answers.Text: @PaulVerheul not in 1.2 - Working on a work-around.
Answers.UserDisplayName: Luke Holder
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-29T23:14:36.027Z
Answers.Text: 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
Answers.UserDisplayName: Stian Karlsen
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-11T10:48:27.180Z
Answers.Text: @StianKarlsen work around is in place, see answer below.
Answers.UserDisplayName: Luke Holder
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-04T23:34:15.047Z
Answers.LastActivityDate: 2017-07-11T04:44:07.043Z
Answers.LastEditDate: 2017-07-11T04:44:07.043Z
Answers.UserDisplayName: Luke Holder
Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-11T10:33:43.723Z
Answers.LastActivityDate: 2017-04-11T10:39:38.667Z
Answers.LastEditDate: 2017-04-11T10:39:38.667Z
Answers.UserDisplayName: Luke Holder
Body: <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>
  
Tags: <plugin-craftcommerce>
Title: Craft Commerce: Calculating (Product + Shipping) + Tax?
ThreadText: # 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 username_1, 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**: @username_4 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.
  
  
  ---
  
  