steviesea72 Posted January 23, 2013 Share Posted January 23, 2013 Hi, I'm new to Prestashop and in process of getting started. Going quite well thanks to the contributors on this forum. Anyway, I am trying to populate the PDF Delivery Slip Header with the delivery address - replacing the Shop name, Date and Delivery ID. I cannot get the delivery address to display and i think this has something to do with 'HTMLTemplateDeliverySlip.php'. Can anyone help - what code should i be adding to HTMLTemplateDeliverySlip.php? My header.tpl code is: <table style="width: 100%"> <tr> <td style="width: 50%"> {if $logo_path} <img src="{$logo_path}" style="width:{$width_logo}px; height:{$height_logo}px;" /> {/if} </td> <td style="width: 50%; text-align: left;"> <table style="width: 100%"> <tr> <td> <span style="font-size: 11pt; color: #9E9F9E">{l s='Delivery Address:' pdf='true'}</span> </td> </tr> <tr> <td> <span style="font-weight: bold; font-size: 12pt; color: #000000">{$delivery_address}</span> </td> </tr> </table> </td> </tr> </table> Why am i trying to achieve this? I have single label A4 paper which i will be using to print my delivery slips. I am using the single label side to bulk print standard 'Goods Return' information and printing the returns address over the label - making it easier for customers to return goods. I will be using the other side of the paper to print my delivery slips. Now, if i can populate the header with the delivery address i will be able to use this single delivery slip as the package postal address label as well. I will fold delivery slip into A7 and place it in a Documents Wallet with the (hopefully) delivery address in the header showing the postal delivery address. Goal - One delivery slip used as a package address label, but also with returns info and label. Saves printing label after label. I hope this makes sense! Thanks, Stephen. PS I know there are modules out there that will do this but if i can get this done i am happy to help others achieve the same - for free! Link to comment Share on other sites More sharing options...
Recommended Posts