Sébastien L Posted May 13, 2014 Share Posted May 13, 2014 Hello, The 1.5 prestashop version we can add downloaded attachments on the product page. But how add the products attachments (pdf) to email order ? Has anyone a solution ? Thank you in advance Link to comment Share on other sites More sharing options...
tuk66 Posted May 14, 2014 Share Posted May 14, 2014 There are solutions (or even questions) how to add an attachment to email on this forum. Link to comment Share on other sites More sharing options...
Sébastien L Posted May 14, 2014 Author Share Posted May 14, 2014 In the file "PaymentModule" I found this : // Join PDF invoice if ((int)Configuration::get('PS_INVOICE') && $order_status->invoice && $order->invoice_number) { $pdf = new PDF($order->getInvoicesCollection(), PDF::TEMPLATE_INVOICE, $this->context->smarty); $file_attachement['content'] = $pdf->render(false); $file_attachement['name'] = Configuration::get('PS_INVOICE_PREFIX', (int)$order->id_lang).sprintf('%06d', $order->invoice_number).'.pdf'; $file_attachement['mime'] = 'application/pdf'; } else $file_attachement = null; I suppose I can add the Product Attachment here... If somebody has an idea ? 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