The reason to do this manually is that prestashop don’t offer a similar to invoide pdf hook for delivery slip.
// pdf/delivery-slip.php
after:
-------------
{l s='Order Date:' pdf='true'}
{dateFormat date=$order->date_add full=0}
--------------
add:
--------------
{if isset($shipping_date)}
{l s='Delivery Date:' pdf='true'}
{dateFormat date=$shipping_date full=0} {$shipping_hour}
{/if}
--------------
// controllers/admin/AdminPdfController.php
search for:
--------
public function generateDeliverySlipPDFByIdOrder($id_order)
---------
and just above:
---------
$this->generatePDF($order_invoice_collection, PDF::TEMPLATE_DELIVERY_SLIP);
--------
add this code:
--------
// ecommy
Hook::exec('actionPDFInvoiceRender', array('order_invoice_list' => $order_invoice_collection));
-------------
Posted in: Date Picker (with hours) for Prestashop