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”.1_Create-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%.2_Create-tax-rate

    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.3_Tax-class
  4. Once you create and save both CGST and SGST tax rules, you can see them saved here.4_Saved-tax-rules
  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.5_Saved-tax-rates
  6. Now go to Products > Catalog to assign tax classes to each products.6_Assign-tax-class-to-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.7_Full-tax-display-settings
  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.8_GST-details-in-Checkout

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.

CTA magento 2 migration service
CTA magento 2 migration service
Previous Article

How to Create Categories Tree Structure in Magento Programmatically

Next Article

How to Send Email to Admin After Customer Registration in Magento 2

Write a Comment
    1. How you differentiate same state order products show sgst,cgst and other state show only IGST.

      Thank You.

    1. How you differentiate same state order products show sgst,cgst and other state show only IGST.

      Thank You.

  1. Atanu Mandal

    Hi,
    Please suggest something where product GST varying in product rate.
    My problem is:
    1) IGST – 5%( Below ₹1000), IGST – 12% (Above ₹1000) Pan India Applicable. Except for Kolkata city.

    2) In case of Kolkata customers local purchase, CGST – 2.5% and SGST – 2.5%

    Please suggest something that i solve the GST issues.

    Thanks

  2. Atanu Mandal

    Hi,
    Please suggest something where product GST varying in product rate.
    My problem is:
    1) IGST – 5%( Below ₹1000), IGST – 12% (Above ₹1000) Pan India Applicable. Except for Kolkata city.

    2) In case of Kolkata customers local purchase, CGST – 2.5% and SGST – 2.5%

    Please suggest something that i solve the GST issues.

    Thanks

  3. Hello,
    There is no GST tax for the overseas countries, with in India only GST applied. So how can i apply gst like if customer order products from same state sgst and cgst and if customer order products from another state IGST applied? How can i differ CGST, SGST and IGST?

    Thank You.

  4. Hello,
    There is no GST tax for the overseas countries, with in India only GST applied. So how can i apply gst like if customer order products from same state sgst and cgst and if customer order products from another state IGST applied? How can i differ CGST, SGST and IGST?

    Thank You.

  5. Followed all the steps. But only one value is showing in the frontend. In my case, only CGST value is showing , SGST is blank. Any idea ?

    1. Verify that, you have properly created “SGST” Tax Rules as show in step-4.
      Verify customer group which you assign while creating this,
      Verify all other fields.

  6. Followed all the steps. But only one value is showing in the frontend. In my case, only CGST value is showing , SGST is blank. Any idea ?

    1. Verify that, you have properly created “SGST” Tax Rules as show in step-4.
      Verify customer group which you assign while creating this,
      Verify all other fields.

  7. I am not getting tax details like CGST(2.5.%) SGST(2.5%) on frontend but it is properly visible at the backend .

  8. I am not getting tax details like CGST(2.5.%) SGST(2.5%) on frontend but it is properly visible at the backend .

Leave a Comment

Your email address will not be published. Required fields are marked *

Get Connect With Us

Subscribe to our email newsletter to get the latest posts delivered right to your email.
Pure inspiration, zero spam ✨