LauraBdG Posted March 10 Share Posted March 10 Good morning, In the customer order history (history.tpl) I added a column dedicated to delivery notes to give the customer the possibility to download the documents independently. I also added the checkbox "Allow a customer to download and view PDF versions of their delivery slips" in the BO in the order statuses. Visually everything is perfect but unfortunately when the document is generated and sent by email to the customer, nothing appears in the order history. Has anyone already deloped this same function? I use Prestashop 8.2.0. Thank you Link to comment Share on other sites More sharing options...
4presta Posted March 17 Share Posted March 17 (edited) Hi. 1. you need to create PdfDeliverySlipController.php (you can find similar ./controllers/front/PdfInvoiceController.php) 2. create your own hook in the module (for example: displayDeliverySlipUrl and in the parameter you will get id_order) 3. create your own TPL template in the module 4. insert your own hook in history.tpl e.g. {hook h='displayDeliverySlipUrl' id_order=$order.details.id} result: Edited March 17 by ps8modules (see edit history) 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