Frenchy Posted June 14, 2018 Share Posted June 14, 2018 Hi everyone, I'm trying to attach a PDF in the shipping mail confirmation with the invoice... How can I do that ? Best regards Link to comment Share on other sites More sharing options...
Frenchy Posted June 15, 2018 Author Share Posted June 15, 2018 Hi, I have finally find my solution. I override the Mail.php class and in the Send function, Before the : /* Send mail */ I add : if ($template == 'shipped') { $file = _PS_ROOT_DIR_ . '/extrapdf/Conditions_de_retours.pdf'; $message->attach(Swift_Attachment::fromPath($file)); } 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