bibob Posted October 1, 2012 Share Posted October 1, 2012 Hi How can i attach a pdf or text document to order confirmation, behind the invoice? I want to include some rules in the second pdf attachment. Thanks Link to comment Share on other sites More sharing options...
bibob Posted October 2, 2012 Author Share Posted October 2, 2012 Found it in classes/mail.php add if(strpos($template,'payment')) { $message->attach(new Swift_Message_Attachment(file_get_contents("http://domain.dk/download/name.pdf"), "name.pdf", "application/pdf")); } if(strpos($template,'order_conf')) { $message->attach(new Swift_Message_Attachment(file_get_contents("http://domain.dk/download/name.pdf"), "name.pdf", "application/pdf")); } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now