With the wider expansion of Internet use, large and even small organizations have been accelerating the use of E-Invoicing. The drive to save environment and stop using papers has led to incorporate e-billing and e-statements in invoicing. Being a popular platform, Magento store owners have started implementing the same in their order invoices.

Digitally signed invoices provide immediate benefits in terms of time saving, cost and most importantly, environment saving. Making them digitally signed makes them legal and provides authenticity and trust. Recently working with a client, he asked us to add digital signature image in his Magento order invoice which drove us to implement a custom code to fulfill the needs.

Here, I’m sharing custom code to add signature image in Magento invoice PDF

Go to App >> Code >> Core >> Mage >> Sales >> Model >> Order >> Pdf >> Invoice.php and put
$this->insertSignature($page, $invoice->getStore()); at line number 153.

Note: Rather than changing in core file, we recommend you to overwrite.

Now add below function in the same file:

Implementing the above code will successfully add signature image in Magento invoice. Let me know if you want more help or send me feedback through commenting.

Happy Coding

 

Click to rate this post!
[Total: 7 Average: 4.6]