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.

Advertisements
Attach Invoice PDF with invoice Email in Magento

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s