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
- if ($this->pdftemplate)
- $pdftemplate = $this->variable;
- else
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