[Skip to main content](#vessel-content)

#   Different shipping cost tax based on the products

##

- **[W3Bsupport](/forum/user/31250-w3bsupport "View W3Bsupport's Profile")**
- [![W3Bsupport's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31250-w3bsupport "View W3Bsupport's Profile") Topic Author
- [ Offline](/forum/user/31250-w3bsupport)

Less More

- Posts: 8
- Thank you received: 0
-
-

11 years 11 months ago [\#178637](#178637) by [W3Bsupport](/forum/user/31250-w3bsupport "View W3Bsupport's Profile")  *[Different shipping cost tax based on the products](/forum/40-taxes/872849-different-shipping-cost-tax-based-on-the-products#178637 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrome 38.0.2125.111  Hi!  In my shop, I have products which taxes are 10% (food) and other are 20% (drinks). When a customer's Shopping Cart's total has more products, for example, with the 10% tax, I need to calculate the shipping cost with this tax amount (10%) . If it is the other way around, when in the Shopping Car total the amount of the 20% taxable products is bigger, then I need to calculate my shipping cost with 20% tax.  How can I make it possible to change the Shipping Taxes depending on these situation?  At the moment my shipping cost depending on the weight is calculate with the 20%. Should I define again my shipping table calculation with the 10%? How will the calculation be done during the check-out so the right taxes are applied when one condition or the other occurs?  I will appreciate all the help on this, since according to the tax authorities, this is mandatory here in Austria :-(  Thanks in advanced.  vv")* was created by *[W3Bsupport](/forum/user/31250-w3bsupport "View W3Bsupport's Profile")*

-- HikaShop version -- : 2.3.2
-- Joomla version -- : 3.3.3
-- PHP version -- : 5.4
-- Browser(s) name and version -- : Chrome 38.0.2125.111

Hi!

In my shop, I have products which taxes are 10% (food) and other are 20% (drinks). When a customer's Shopping Cart's total has more products, for example, with the 10% tax, I need to calculate the shipping cost with this tax amount (10%) . If it is the other way around, when in the Shopping Car total the amount of the 20% taxable products is bigger, then I need to calculate my shipping cost with 20% tax.

How can I make it possible to change the Shipping Taxes depending on these situation?

At the moment my shipping cost depending on the weight is calculate with the 20%. Should I define again my shipping table calculation with the 10%? How will the calculation be done during the check-out so the right taxes are applied when one condition or the other occurs?

I will appreciate all the help on this, since according to the tax authorities, this is mandatory here in Austria ![:-(](/media/kunena/emoticons/4.png ":-(")

Thanks in advanced.

vv

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg3Mjg0OS1kaWZmZXJlbnQtc2hpcHBpbmctY29zdC10YXgtYmFzZWQtb24tdGhlLXByb2R1Y3RzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 11 months ago [\#178655](#178655) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Different shipping cost tax based on the products](/forum/40-taxes/872849-different-shipping-cost-tax-based-on-the-products#178655 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrome 38.0.2125.111  Hi!  In my shop, I have products which taxes are 10% (food) and other are 20% (drinks). When a customer's Shopping Cart's total has more products, for example, with the 10% tax, I need to calculate the shipping cost with this tax amount (10%) . If it is the other way around, when in the Shopping Car total the amount of the 20% taxable products is bigger, then I need to calculate my shipping cost with 20% tax.  How can I make it possible to change the Shipping Taxes depending on these situation?  At the moment my shipping cost depending on the weight is calculate with the 20%. Should I define again my shipping table calculation with the 10%? How will the calculation be done during the check-out so the right taxes are applied when one condition or the other occurs?  I will appreciate all the help on this, since according to the tax authorities, this is mandatory here in Austria :-(  Thanks in advanced.  vv")*

Hello,
The solution will be to create 1 shipping method for each product tax category, so you'll just have to :
- Create 2 shipping methods with different "Product Tax Categories" and with the "Price per product" option set to YES
- Go to your product page and block the shipping method that you don't want to use for this product. (and do it for each products)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg3Mjg0OS1kaWZmZXJlbnQtc2hpcHBpbmctY29zdC10YXgtYmFzZWQtb24tdGhlLXByb2R1Y3RzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[W3Bsupport](/forum/user/31250-w3bsupport "View W3Bsupport's Profile")**
- [![W3Bsupport's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31250-w3bsupport "View W3Bsupport's Profile") Topic Author
- [ Offline](/forum/user/31250-w3bsupport)

Less More

- Posts: 8
- Thank you received: 0
-
-

11 years 11 months ago [\#178828](#178828) by [W3Bsupport](/forum/user/31250-w3bsupport "View W3Bsupport's Profile")  Replied by *[W3Bsupport](/forum/user/31250-w3bsupport "View W3Bsupport's Profile")* on topic *[Different shipping cost tax based on the products](/forum/40-taxes/872849-different-shipping-cost-tax-based-on-the-products#178828 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrome 38.0.2125.111  Hi!  In my shop, I have products which taxes are 10% (food) and other are 20% (drinks). When a customer's Shopping Cart's total has more products, for example, with the 10% tax, I need to calculate the shipping cost with this tax amount (10%) . If it is the other way around, when in the Shopping Car total the amount of the 20% taxable products is bigger, then I need to calculate my shipping cost with 20% tax.  How can I make it possible to change the Shipping Taxes depending on these situation?  At the moment my shipping cost depending on the weight is calculate with the 20%. Should I define again my shipping table calculation with the 10%? How will the calculation be done during the check-out so the right taxes are applied when one condition or the other occurs?  I will appreciate all the help on this, since according to the tax authorities, this is mandatory here in Austria :-(  Thanks in advanced.  vv")*

Hello Mohamed!

Thanks for you suggestion, it was a good test scenario to set up but unfortunately it didn't work ![:-(](/media/kunena/emoticons/4.png ":-(")

I noticed that I forgot to mention that my shipping table is "product weight" dependent. So here is what I did:

1) I duplicated all my shipping modules and set one for 10% and another 20% within the same weight range. I also set the "Price per product" option to YES. I did this for all of them. See pictures: shipping_set_up.jpg &amp; shipping_set_up_2.jpg

2) I tested with three products: 2 with 10% (Food) and 1 with 20% (drink).

a) On the first try, I only worked with shipping until 2kg. So I blocked the other weight range NOT corresponding to the product tax. So it looked like: product 10% - shipping 10%

My shopping car look like shown in the picture: wrong_shipping_cost.jpg

In this case the module calculated the shipping based on the first product:
Neto: 6,25€ + 10% Tax = 6,88€
However it should calculate the shipping with 20%Tax
since the sum of the prices from the products based with 10% (13,30 €)
is smaller as the sum of the one with 20% (18,00 €).
In this case shipping should be 7,50 €

If the product with 20% was in the top, it would calculate the shipping with 20%.

b) On the second try, I worked with all the shipping modules with all the shipping limits. In this case I blocked all the shipping method that didn't correspond to the product tax (shipping_list.jpg)

This is when everything went wrong. No shipping was shown anymore (no_shipping_shown.jpg). When I went ahead with the order, I couldn’t oder at all (cannot_buy.jpg)

Then I tried to have only group with the same taxes (can_only_calculate_one_tax_group_per_order.jpg) and the shipping cost was back there. So it mean, that in this case it will only work if the products in the shopping car have the same taxable value ![:-(](/media/kunena/emoticons/4.png ":-(")

After all this I had to set everything back to the way it was ![:-(](/media/kunena/emoticons/4.png ":-(")

So my thinking at the moment is:
Should I remove the tax on my shipping modules and program something like:

If the “sum” of 10% tax products is &gt; than the “sum” of the 20% taxable products, then the shipping cost taxes is:
shipping = {shipping net + 10%,}
else { shipping= shipping net + 20%}
echo shipping

So now, the question is: where do I do this and which are the “string” I need to use so reflect this so I can get the correct result?

Thanks a LOT in advance

VV

- [ ![shipping&#95;set&#95;up.jpg](/forum/attachment/20587) ](/forum/attachment/20587 "...ing&#95;set&#95;up.jpg") [ ](/forum/attachment/20587?download=1 "...ing&#95;set&#95;up.jpg")
- [ ![shipping&#95;set&#95;up&#95;2.jpg](/forum/attachment/20588) ](/forum/attachment/20588 "...g&#95;set&#95;up&#95;2.jpg") [ ](/forum/attachment/20588?download=1 "...g&#95;set&#95;up&#95;2.jpg")
- [ ![shipping&#95;list.jpg](/forum/attachment/20589) ](/forum/attachment/20589 "shipping&#95;list.jpg") [ ](/forum/attachment/20589?download=1 "shipping&#95;list.jpg")
- [ ![no&#95;shipping&#95;shown.jpg](/forum/attachment/20590) ](/forum/attachment/20590 "...ping&#95;shown.jpg") [ ](/forum/attachment/20590?download=1 "...ping&#95;shown.jpg")
- [ ![cannot&#95;buy.jpg](/forum/attachment/20591) ](/forum/attachment/20591 "cannot&#95;buy.jpg") [ ](/forum/attachment/20591?download=1 "cannot&#95;buy.jpg")
- [ ![can&#95;only&#95;calculate&#95;one&#95;tax&#95;group&#95;per&#95;order.jpg](/forum/attachment/20592) ](/forum/attachment/20592 "...&#95;per&#95;order.jpg") [ ](/forum/attachment/20592?download=1 "...&#95;per&#95;order.jpg")
- [ ![wrong&#95;shipping&#95;cost.jpg](/forum/attachment/20593) ](/forum/attachment/20593 "...pping&#95;cost.jpg") [ ](/forum/attachment/20593?download=1 "...pping&#95;cost.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg3Mjg0OS1kaWZmZXJlbnQtc2hpcHBpbmctY29zdC10YXgtYmFzZWQtb24tdGhlLXByb2R1Y3RzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 11 months ago [\#178830](#178830) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Different shipping cost tax based on the products](/forum/40-taxes/872849-different-shipping-cost-tax-based-on-the-products#178830 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrome 38.0.2125.111  Hi!  In my shop, I have products which taxes are 10% (food) and other are 20% (drinks). When a customer's Shopping Cart's total has more products, for example, with the 10% tax, I need to calculate the shipping cost with this tax amount (10%) . If it is the other way around, when in the Shopping Car total the amount of the 20% taxable products is bigger, then I need to calculate my shipping cost with 20% tax.  How can I make it possible to change the Shipping Taxes depending on these situation?  At the moment my shipping cost depending on the weight is calculate with the 20%. Should I define again my shipping table calculation with the 10%? How will the calculation be done during the check-out so the right taxes are applied when one condition or the other occurs?  I will appreciate all the help on this, since according to the tax authorities, this is mandatory here in Austria :-(  Thanks in advanced.  vv")*

Hi,

I think that you could maybe do it differently.

Instead of using the "shipping price per product", you should instead create one warehouse per tax category and add your products to the corresponding warehouse and create one set of shipping methods for each warehouse (restrict each one to the warehouse) and set the corresponding tax category in each shipping method.
That way, during the checkout, the products will be grouped by warehouse and you'll get one shipping method per warehouse each one with a different tax rate and the sum of the fees of the shipping methods will be your final shipping price with the different tax compounds.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg3Mjg0OS1kaWZmZXJlbnQtc2hpcHBpbmctY29zdC10YXgtYmFzZWQtb24tdGhlLXByb2R1Y3RzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[W3Bsupport](/forum/user/31250-w3bsupport "View W3Bsupport's Profile")**
- [![W3Bsupport's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31250-w3bsupport "View W3Bsupport's Profile") Topic Author
- [ Offline](/forum/user/31250-w3bsupport)

Less More

- Posts: 8
- Thank you received: 0
-
-

11 years 11 months ago [\#178858](#178858) by [W3Bsupport](/forum/user/31250-w3bsupport "View W3Bsupport's Profile")  Replied by *[W3Bsupport](/forum/user/31250-w3bsupport "View W3Bsupport's Profile")* on topic *[Different shipping cost tax based on the products](/forum/40-taxes/872849-different-shipping-cost-tax-based-on-the-products#178858 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrome 38.0.2125.111  Hi!  In my shop, I have products which taxes are 10% (food) and other are 20% (drinks). When a customer's Shopping Cart's total has more products, for example, with the 10% tax, I need to calculate the shipping cost with this tax amount (10%) . If it is the other way around, when in the Shopping Car total the amount of the 20% taxable products is bigger, then I need to calculate my shipping cost with 20% tax.  How can I make it possible to change the Shipping Taxes depending on these situation?  At the moment my shipping cost depending on the weight is calculate with the 20%. Should I define again my shipping table calculation with the 10%? How will the calculation be done during the check-out so the right taxes are applied when one condition or the other occurs?  I will appreciate all the help on this, since according to the tax authorities, this is mandatory here in Austria :-(  Thanks in advanced.  vv")*

Hi Nicolas!

Thanks for your thoughts, but the problem is that the Austrian laws requires my customer that the taxes applied for shipping needs to be the same as the group that has the higher sum.

For example, let’s say my shopping car has the sum of the following products

90 € —&gt; 10% (taxes for the food)
110 € —&gt; 20% (taxes for the drinks)

Shipping net cost is 6.20€ —&gt; to this I muss charge 20% of taxes since in the shopping car the client spent more money on drink than in food.

The same is for the other possible scenario

100 € —&gt; 10% (taxes for food)
90 € —&gt; 20% (taxes for drinks)

Shipping: 6.20€ + 10% = 6,82 €

I hope I’m making my self clear ans you guys can help me here.

That is why I think I should hard code this so:

If the “sum” of 10% tax products is bigger than the “sum” of the 20% taxable products, then the shipping cost tax is:
shipping = {shipping net cost + 10%,}
else { shipping= shipping net cost + 20%}
echo shipping

could this be possible and in which file should I do this and which are the “strings” I need to use so reflect this so I can get the correct result?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg3Mjg0OS1kaWZmZXJlbnQtc2hpcHBpbmctY29zdC10YXgtYmFzZWQtb24tdGhlLXByb2R1Y3RzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[W3Bsupport](/forum/user/31250-w3bsupport "View W3Bsupport's Profile")**
- [![W3Bsupport's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31250-w3bsupport "View W3Bsupport's Profile") Topic Author
- [ Offline](/forum/user/31250-w3bsupport)

Less More

- Posts: 8
- Thank you received: 0
-
-

11 years 11 months ago [\#179150](#179150) by [W3Bsupport](/forum/user/31250-w3bsupport "View W3Bsupport's Profile")  Replied by *[W3Bsupport](/forum/user/31250-w3bsupport "View W3Bsupport's Profile")* on topic *[Different shipping cost tax based on the products](/forum/40-taxes/872849-different-shipping-cost-tax-based-on-the-products#179150 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrome 38.0.2125.111  Hi!  In my shop, I have products which taxes are 10% (food) and other are 20% (drinks). When a customer's Shopping Cart's total has more products, for example, with the 10% tax, I need to calculate the shipping cost with this tax amount (10%) . If it is the other way around, when in the Shopping Car total the amount of the 20% taxable products is bigger, then I need to calculate my shipping cost with 20% tax.  How can I make it possible to change the Shipping Taxes depending on these situation?  At the moment my shipping cost depending on the weight is calculate with the 20%. Should I define again my shipping table calculation with the 10%? How will the calculation be done during the check-out so the right taxes are applied when one condition or the other occurs?  I will appreciate all the help on this, since according to the tax authorities, this is mandatory here in Austria :-(  Thanks in advanced.  vv")*

Any idea anyone please.... ![:(](/media/kunena/emoticons/5.png ":(")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg3Mjg0OS1kaWZmZXJlbnQtc2hpcHBpbmctY29zdC10YXgtYmFzZWQtb24tdGhlLXByb2R1Y3RzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 11 months ago [\#179297](#179297) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Different shipping cost tax based on the products](/forum/40-taxes/872849-different-shipping-cost-tax-based-on-the-products#179297 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrome 38.0.2125.111  Hi!  In my shop, I have products which taxes are 10% (food) and other are 20% (drinks). When a customer's Shopping Cart's total has more products, for example, with the 10% tax, I need to calculate the shipping cost with this tax amount (10%) . If it is the other way around, when in the Shopping Car total the amount of the 20% taxable products is bigger, then I need to calculate my shipping cost with 20% tax.  How can I make it possible to change the Shipping Taxes depending on these situation?  At the moment my shipping cost depending on the weight is calculate with the 20%. Should I define again my shipping table calculation with the 10%? How will the calculation be done during the check-out so the right taxes are applied when one condition or the other occurs?  I will appreciate all the help on this, since according to the tax authorities, this is mandatory here in Austria :-(  Thanks in advanced.  vv")*

Hello,
There is actually no option to do that, so in your case the solution will probably be to :
- Set no tax category on your shipping configuration page
- Develop a plugin which will add an additional fee which will be the shipping tax regarding the products that you have in your cart.

Note that the plugin will have to be based on the "**onAfterCartProductsLoad**" function.
Here is the developer documentation for more information : [ www.hikashop.com/support/documentation/6...fterCartProductsLoad](http://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#onAfterCartProductsLoad)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg3Mjg0OS1kaWZmZXJlbnQtc2hpcHBpbmctY29zdC10YXgtYmFzZWQtb24tdGhlLXByb2R1Y3RzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.346 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
