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: How to Save Custom Field Value to quote_address for Multi-Shipping Orders

Hello Magento Friends, In Magento 2, the checkout process allows customers to choose multiple shipping…

5 hours ago

Best Beginners Guide to Shopify Balance Account

If you are a Shopify admin, using a Shopify Balance Account for your business revenue…

5 hours ago

8 Best Social Login Apps for Shopify Store in 2024

Running an eCommerce business can be incredibly demanding, leaving entrepreneurs little time to focus on…

5 hours ago

Generating Thumbnails with Spatie Media Library in Laravel 11: A Step-by-Step Guide

Generating image thumbnails is a common requirement in web applications, especially when handling media-heavy content.…

1 day ago

Enhancing Web Application Security with Laravel’s Built-In Features

In today’s digital landscape, web application security is paramount. As a powerful PHP framework, Laravel…

2 days ago

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

October was an exciting month for MageComp! From significant updates across our Magento 2 extension…

2 days ago