Where are the PDF invoices totals pulled from? I see that it is an array in abstract.php, but where does the original files come from?
Magento – Totals for emails and pdf invoices
invoicetotals
invoicetotals
Where are the PDF invoices totals pulled from? I see that it is an array in abstract.php, but where does the original files come from?
Best Answer
It helps to take a look at how Magento implements it - most totals are added in the sales module in /app/code/core/Mage/Sales/etc/config.xml
For example the subtotal is defined here
and for the pdf here
Use the above configuration in your own module's config.xml file as a start, Adjust subtotal = your total code. Further places to look into
/app/code/core/Mage/Sales/Model/Quote/Address
/app/code/core/Mage/Sales/Model/Order/Pdf