Site icon MageComp Blog

How to Create Indian GST Tax Rule in Magento 2

How to Create Indian GST Tax Rule in Magento 2

How to Create Indian GST Tax Rule in Magento 2

1st July, 2017 is known as GST day as Indian government introduced “One Nation One Tax” excluding all other taxes with single GST. It is an indirect tax applicable in India replacing multiple taxes levied by State and Central governments. Online store owners also in a hunt to implement GST in their stores.

Recently we provided detailed tutorial on creating Indian GST Tax Rule in Magento, based on the comments, feedback and users’ requests for the same blog for Magento 2, I’m here with the detailed solution on creating Indian GST Tax Rule in Magento 2.
Since the launch of Magento 2, store owners having Magento 1 stores are migrating their stores in Magento 2 to leverage new features and functionality served by the version. Being the ruling developers of Magento 2, we would like to provide you with an easy method to implement GST in your Magento 2 and make your Magento 2 stores GST ready.

If you are confused with under which tax rate slab your products fall, government has also introduced an android app to calculate GST for the products you require.

Steps to create Indian GST Tax Rule in Magento 2

  1. First of all, create a new tax rule to apply GST tax to your store products. Go to Stores > Taxes > Tax Rules and click on “Add New Tax Rule”.

  2. While creating tax rule, you need to create tax rates for both SGST and CGST. All the Indian goods (products) and services are classified under 4 tax rates, those are 5%, 12%, 18% and 28% in which you have to look at tax rates to find your products fall under which category. Here, for example, we are implementing the tax rule for products fall under GST rates of 5% and thus we need to create SGST and CGST tax rules for 5%.

    Note that CGST and SGST are equally divided to half of the amount of tax rate. So, here as the tax rate is 5%, CGST and SGST both will be divided equally i.e 2.5%. As the government rule specification, store owners and sellers have to bifurcate CGST and SGST taxes separately in the order details and invoices for each order made in the store.
    To bifurcate GST taxes to show separately in all the order related documents, go to Magento Root > vendor\magento\module-tax\view\frontend\web\template\checkout\summary\tax.html
    At line no. 46, Find Code:

    
                    
                        
                        
    
    

    Replace with:

    
                    
                        
                        
    
    

    Note: Generally tax.html resides at the above path, but if you are using custom theme and have overwritten tax.html file, find it from your theme folder and replace the above code.

  3. Now click Additional Settings under which you will require to create product tax class for GST. Name your tax class as GST to easily identify it while applying tax rules to products.

  4. Once you create and save both CGST and SGST tax rules, you can see them saved here.

  5. While creating tax rules, you have created tax rates for both CGST and SGST which can be seen enlisted under Stores > Taxes > Manage Tax Zones & Rates.

  6. Now go to Products > Catalog to assign tax classes to each products.

  7. Now go to Stores > Configuration > Sales > Tax > Shopping Cart Display Settings where set Yes to “Display Full Tax Summary” to easily display tax summary in detail.

  8. Once everything is set and configured properly, you can add products to cart and see GST applied on order with bifurcation of both SGST and CGST.

  9. Creating GST tax rules in Magento 2 is not a big deal. Following above steps properly will create GST rules in your Magento 2. Still if you stuck with something, let me know your query through commenting. I would be happy to help you regarding this.