cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Shipping Tax Class in Magento2

How to get Shipping Tax Class in Magento2

I want to apply shipping tax class based on products in cart. How can i change the shipping tax class in magento programmatically. I tried below links but i am getting total tax amount. I need to apply a tax class to shipping amount.

Lets say shipping amount is 499 , then i need to apply 5% shipping tax if all the products are under 5% tax. If products having 12% tax then i need to apply 12% tax to shipping amount.

How to get Tax Rates from Tax Class?

Apply Tax to Shipping Amount in Magento2

3 REPLIES 3

Re: How to get Shipping Tax Class in Magento2

Hello @dineshprim 

I am not sure if you want to do this for GST tax in india, 

Here is the readymade extension available which can apply the same tax on shipping charges.

 

https://magecomp.com/magento-2-indian-gst.html

Was my answer helpful? You can accept it as a solution.
175+ professional extensions for M1 & M2 with free lifetime updates!

Re: How to get Shipping Tax Class in Magento2

Hi Gaurav,

 

Thanks for the reply. I checked the module and backend login giving me an error message. Unable to login.

Re: How to get Shipping Tax Class in Magento2

Hi @dineshprim 

 

Try this one: https://meetanshi.com/magento-2-indian-gst.html

Backend Demo: http://m2d7.meetanshi.com/index.php/admin/

Frontend Demo: http://m2d7.meetanshi.com/index.php/gst-india.html

-------------
If this helps, Click Kudos & Accept as Solution