Wednesday, 26 August 2015

Attach Invoice PDF with invoice Email in Magento

Sometime we need to send a invoice pdf in a invoice mail in magento, so here I am explaining how to add invoice pdf in invoice mail.
1) Override the app/code/core/Mage/Core/Model/Email/Template/Mailer.php file in your module
2) Add one protected variable $pdftemplate
3) Edit the send() function
4) at line around 70 put the following code
   
  1. if ($this->pdftemplate)
  2. $pdftemplate = $this->variable;
  3. else
   

For complete Information, Visit full Blog: Attach Invoice PDF with invoice Email in Magento

FindNerd is an effective C, Java, Android, Html, iOS, JavaScript, PHP Developer Forum, to instantly resolve your various language queries.

Apart from this, If you have any html language issue, you can post at HTML questions and answers and get instantly resolved it from highly experienced FindNerd community members.

No comments:

Post a Comment