ChrisDB Posted June 19, 2024 Share Posted June 19, 2024 Hi all, Could anyone help explain how to add the customer email address above the delivery address on the delivery slip. I can see lots of articles on this but all for older versions of prestashop so the instructions don't mind the files. Link to comment Share on other sites More sharing options...
Nickz Posted June 19, 2024 Share Posted June 19, 2024 You need to search for your version when using a search engine. Best with Version and module name. Link to comment Share on other sites More sharing options...
AddWeb Solution Posted June 19, 2024 Share Posted June 19, 2024 10 minutes ago, ChrisDB said: Hi all, Could anyone help explain how to add the customer email address above the delivery address on the delivery slip. I can see lots of articles on this but all for older versions of prestashop so the instructions don't mind the files. Hi, The template file for the delivery slip is usually located in the pdf directory of your Prestashop installation. For PrestaShop 1.8, it is typically found at: Quote /themes/your-theme-name/pdf/delivery-slip.tpl Example code : <table style="width: 100%"> <tr> <td style="width: 100%"> <!-- Add Customer Email --> <strong>{l s='Email:' pdf='true'}</strong> {$order->getCustomer()->email}<br> <!-- Delivery Address Block --> {if isset($delivery_address)} <strong>{l s='Delivery Address:' pdf='true'}</strong><br> {$delivery_address}<br> {/if} </td> </tr> </table> Save the changes to delivery-slip.tpl Generate a new delivery slip from the back office to check if the customer email is displayed correctly above the delivery address. NOTE : Backup the original template file before making any changes. I hope this would help. Thanks! Link to comment Share on other sites More sharing options...
ChrisDB Posted June 19, 2024 Author Share Posted June 19, 2024 Thanks, I have looked and don't have this in the theme, can I take a default copy from somewhere else and add to the theme? Link to comment Share on other sites More sharing options...
AddWeb Solution Posted June 21, 2024 Share Posted June 21, 2024 On 6/19/2024 at 6:57 PM, ChrisDB said: Thanks, I have looked and don't have this in the theme, can I take a default copy from somewhere else and add to the theme? Hi, If you don’t find it there, check the Prestashop core files, usually located at: /pdf/delivery-slip.tpl Copy the delivery-slip.tpl file from the default location to your current theme directory. Assuming your current theme is named your-theme-name, the destination should be: /themes/your-theme-name/pdf/delivery-slip.tpl Then Add the code to include the customer email address as described in the previous steps. Thanks! 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