4

I need to divide SGST and CGST in equal amount. currently on my site there is showing total tax amount of SGST and CGST on subtotal total. I need it should be show equal CGST and SGST amount. for more details see below snap

Result Updated enter image description here

1

Credits : Magecomp link

To bifurcate GST taxes to show separately in all the order related documents, go to

go to and copy app\design\frontend\base\default\template\tax\order\tax.phtml

<?php if ($isFirst): ?>
                <td <?php echo $this->getValueProperties()?> rowspan=" 1 <?php echo count($rates); ?>">
                    <?php echo $_order->formatPrice($amount); ?>
                </td>
            <?php endif; ?>

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

<?php //if ($isFirst): ?>
                <td <?php echo $this->getValueProperties()?> rowspan=" 1 <?php //echo count($rates); ?>">
                    <?php echo $_order->formatPrice($amount / ($percent/(float)$rate['percent']) ); ?>
                </td>
            <?php //endif; ?>

Now you can see 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.

Result :

enter image description here

  • i go through same process but still it showing total tax of SGST and SGST – Neeya Aug 22 '17 at 6:44
  • please have a look on my updated result – Neeya Aug 22 '17 at 6:52
  • @Neeya if it is not live site, can you enable template path hints and check from which file that CGST and SGST values are displaying in checkout page..... – Baby in Magento Aug 22 '17 at 7:02
  • tax details showing from frontend\base\default\template\tax/checkout/tax.phtml – Neeya Aug 22 '17 at 7:13
  • @Neeya take backup of the file and than do the same changes in that file as mentioned in that link and check once..... – Baby in Magento Aug 22 '17 at 7:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.