My pdf invoice show now the subtotal including tax, the tax, shipping taxes, and the grand total including taxes and i want to show the subtotal excluding tax instead of including tax. I tried to edit the


Can anyone point me to the right direction? Thank you

2 Answers 2


its simple. go to system -> configuration select Tax under Sales tab

In Orders, Invoices, Credit Memos Display Settings you could set whatever you need..

  • did it workd??? May 14, 2015 at 11:51
  • This setting is a global setting, I just want this subtotal excl tax only on the pdf invoice.
    – Mihai Cata
    May 14, 2015 at 12:19

You need to replicate magento behavior regarding taxes but locally. I never needed this into the wild but this is how I'd be doing it.

You can alter the Total\Default.php. Start with getFullTaxInfo:line 88. Play with that global setting (Orders, Invoices, Credit Memos Display Settings) and use var_dump into that function to detect the changes into variable $taxClassAmount. After you built your idea of how data should be sent later on, into the invoice pdf, revert the global setting and start changing the code to show totals as it was when global config was set to excluding tax. Basically you need to recode $taxClassAmount to look like global config was set as excluding tax.

DO NOT alter app/core/core files. Use module rewrites and move additional coding into app/code/local.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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