Categories: How To

How to Create Indian GST Tax Rule in Magento

Recently the Indian government introduced GST tax in the market to replace all those different taxes and bunch them together under a single tax class. This tax is popularly known as GST – Goods and Services Tax, “One Nation One Tax”. It’s a common indirect tax for the whole nation applied right from the manufacturer to the consumer to make India a unified market. A robust and comprehensive IT system would be required to implement GST regime in India. Whole Ecommerce community is in a race to quick implement the tax rule to streamline with this new GST tax.

When it comes to Ecommerce, how can Magento be behind in this race to the win? As per the Magento, considering its popularity and usability in market, more than 250000 stores run on this platform. Being the ruling Magento developers, we have come with the easy guide to create GST tax rule in Magento to quick start implementing GST to your Magento products and services.

Let’s learn to create GST tax rule in Magento

  1. First of all, create a new product tax class to easily identify while applying GST tax to the products. Go to Sales > Tax > Product Tax Classes and click on “Add New”. Name your tax class as GST to easily identify it while applying tax rules to products.
  2. Create tax rates for both SGST and CGST. Indian goods and services have been classified under 4 tax rates, those are 5%, 12%, 18% and 28%. Take a look at tax rates to find your products fall under which category. Here, we are implementing the tax rule on one of the clients selling fish & meats and thus their products fall under GST rates of 5% and thus we need to create SGST and CGST tax rules for 5%.
    Go to Sales > Tax > Manage Tax Zones & Rates and click to Add New Tax Rate, and create tax rates for both CGST and SGST.

    Know that CGST and SGST are equally divided to half of the amount of tax rate. As per the rule declaration, store owners and sellers also need to bifurcate CGST and SGST taxes separately in the order details and invoices. So if the tax rate is 5%, you need to create SGST with 2.5% and CGST with 2.5% tax rates to show them separately in invoice.
    To bifurcate GST taxes to show separately in all the order related documents, go to app\design\frontend\base\default\template\tax\order\tax.phtml,
    Find below code:

    getValueProperties()?> rowspan=" 1 ">
                        
    

     

    Copy the whole file and paste at app\design\frontend\[theme_package]\template\tax\order And replace code as shown below:

    getValueProperties()?> rowspan=" 1 ">
                        
    

     

    Now go to System -> Sales -> Tax -> Shopping Cart Display Setting and set Yes to Display Full Tax Summary.

  3. Create new tax rules from Sales > Tax > Manage Tax Rules. Click on Create New and set each options as shown below.

    Once you create and save both the rules, you can see them enlisted.

  4. Now once you have created and saved GST tax rates and rules, you need to assign the tax class to your products. Here, we have only created tax rates for 5% but if you have wide range of products those fall under various tax rates, you need to create rates and rules for all and assign the related class to the products.
  5. So we are done with creating GST tax rules in Magento and once it’s assigned to the products, you can see the detailed tax charges with the bifurcation of SGST and CGST taxes in cart, checkout, invoice, credit memo, shipment, my account order view and Emails.

Understanding GST and creating tax rules in Magento is not rocket science but proper implementation can only lead to exact rules implementation and tax assignments. Above, I have tried to properly elaborate rules configuration along with the government terms and norms. Still if you have any questions or confusions regarding creating GST tax rules in Magento, don’t hesitate to contact me through commenting, I’ll be happy to help.

Click to rate this post!
[Total: 20 Average: 4.4]
Dhiren Vasoya

Dhiren Vasoya is a Director and Co-founder at MageComp, Passionate 🎖️ Certified Magento Developer👨‍💻. He has more than 9 years of experience in Magento Development and completed 850+ projects to solve the most important E-commerce challenges. He is fond❤️ of coding and if he is not busy developing then you can find him at the cricket ground, hitting boundaries.🏏

View Comments

  • Hi, After successfully, Place code and settings, IGST working fine, but if we can check in SGST and CGST system calculate SGST+CGST+IGST, Kindly assist where i am missing in configuration.

  • SIR THIS BLOG IS VERY GOOD AND FOLLOWING THE INSTRUCTIONS OF YOUR BLOG I SUCCESSFULLY APPLY GST IN MY WEBSITE. SIR THANK YOU SOO MUCH FOR CREATING THIS BLOG.

  • It's Works perfect. Thank you. but I need one help from you all. I am new to Magento. I created one E-commerce website using Magento 1.9 version. I assigned free shipping for particular products and also assigned "Shipping rates for other products using Tablerates" based on weight vs destination. While select product from both the criterias. It accept free shipping only not Tablerates. Kindly check the below link and let me know, is their any possibility to avoid conflict of free shipping and tablerates. Because we want free shipping only for applied products if i select free shipping product and other non free shipping products means it should show shipping rates not zero rate.

  • SIR THIS BLOG IS VERY GOOD AND FOLLOWING THE INSTRUCTIONS OF YOUR BLOG I SUCCESSFULLY APPLY GST IN MY WEBSITE. SIR THANK YOU SOO MUCH FOR CREATING THIS BLOG.

  • Hi, After successfully, Place code and settings, IGST working fine, but if we can check in SGST and CGST system calculate SGST+CGST+IGST, Kindly assist where i am missing in configuration.

  • Please help me this step. I have to change code in base file or theme file?

    I am confused. Please help

    app\design\frontend\base\default\template\tax\order\tax.phtml,
    Find below code:

    <td getValueProperties()?> rowspan=" 1 ">
    formatPrice($amount); ?>

    1
    2
    3
    4
    5

    <td getValueProperties()?> rowspan=" 1 ">
    formatPrice($amount); ?>

    Copy the whole file and paste at app\design\frontend\[theme_package]\template\tax\order And replace code as shown below:

    <td getValueProperties()?> rowspan=" 1 ">
    formatPrice($amount / ($percent/(float)$rate['percent']) ); ?>

    <td getValueProperties()?> rowspan=" 1 ">
    formatPrice($amount / ($percent/(float)$rate['percent']) ); ?>

  • Please help me this step. I have to change code in base file or theme file?

    I am confused. Please help

    appdesignfrontendbasedefaulttemplatetaxordertax.phtml,
    Find below code:

    <td getValueProperties()?> rowspan=" 1 ">
    formatPrice($amount); ?>

    1
    2
    3
    4
    5

    <td getValueProperties()?> rowspan=" 1 ">
    formatPrice($amount); ?>

    Copy the whole file and paste at appdesignfrontend[theme_package]templatetaxorder And replace code as shown below:

    <td getValueProperties()?> rowspan=" 1 ">
    formatPrice($amount / ($percent/(float)$rate['percent']) ); ?>

    <td getValueProperties()?> rowspan=" 1 ">
    formatPrice($amount / ($percent/(float)$rate['percent']) ); ?>

  • Hi ,

    First of all a good blog.
    i am getting the values right for example i have given cgst and sgst 1.5% and the values are adding to the price.
    but one thing is in my cart page its not differentiating CGST and SGST its showing general Name "Tax "and showing both combined price 1.5+ 1.5% value.I have added the code in tax.phtml still its not workign anybody can help.

Recent Posts

Magento 2: Add Quantity Increment and Decrement on Category Page

Hello Magento Friends, In this blog, we will discuss about adding quantity increment and decrement…

14 hours ago

How to Integrate ChatGPT with Laravel Application?

In this guide, we'll explore how to integrate ChatGPT, an AI-powered chatbot, with a Laravel…

4 days ago

What are Net Sales? How to Calculate Your Net Sales?

In the world of business, understanding financial metrics is crucial for making informed decisions and…

6 days ago

Magento 2 Extensions Digest April 2024 (New Release & Updates)

Welcome to the MageComp Monthly Digest, where we bring you the latest updates, releases, and…

6 days ago

The ABCs of Geofencing: Definition, Features and Uses

In this era, businesses are always on the lookout for ways to engage with their…

7 days ago

How to Delete Product Variant in a Shopify Remix App using GraphQL Mutations?

Managing a Shopify store efficiently involves keeping your product catalog organized. This includes removing outdated…

1 week ago