I'm trying to change the invoice model for making changes in invoice pdf but I can't find this.

I'm trying change /app/code/core/Mage/Sales/Controller/Abstract.php and /app/code/core/Mage/Sales/Model/Order/Pdf/Invoice.php but I can delete these files and everything works the same.

I searched in my local folder and community and I can't find what are overriding these files.

If I delete all /app/code/core/Mage/Sales/ folder (except the folder /app/code/core/Mage/Sales/etc/) all works. Why does everything work if I delete the files?

  • Compilation is enable in your webshop?
    – Keyur Shah
    Commented Apr 16, 2018 at 10:47
  • Yes When I use the compilation it works!! But I don't not why. The compilation is enabled but until I've run it manually it has not worked. Commented Apr 16, 2018 at 11:05
  • Please disable the compilation while development and try
    – Keyur Shah
    Commented Apr 16, 2018 at 11:23

1 Answer 1


Disable the compilation while development.

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.