spott Posted December 24, 2013 Share Posted December 24, 2013 Hi By default - PrestaShop adds only carrier name to e-mails and invoices. Bu I need to show transit time also to e-mails and invoices - how I can do it? Link to comment Share on other sites More sharing options...
shaun_imakr Posted September 16, 2014 Share Posted September 16, 2014 Have you found a solution for this by any chance? Link to comment Share on other sites More sharing options...
spott Posted September 16, 2014 Author Share Posted September 16, 2014 Unfortunately, no Link to comment Share on other sites More sharing options...
tuk66 Posted September 17, 2014 Share Posted September 17, 2014 This feature will be available in the next version (2.0.7) of the M4 PDF Extensions module, using this snippet: {if $order[orders].carrier.delay}{$order[orders].carrier.delay|escape:'htmlall':'UTF-8'}{/if} Link to comment Share on other sites More sharing options...
shaun_imakr Posted September 17, 2014 Share Posted September 17, 2014 I found a solution. in classes/PaymentModule.php Iadded this line 727: '{carrier}' => ($virtual_product || !isset($carrier->name)) ? Tools::displayError('No carrier') : $carrier->name, '{delay}' => $carrier->delay, '{payment}' => Tools::substr($order->payment, 0, 32), and then I called {delay} in mails/en/order_conf.html like here in line 308: <span style="color:#777"> <span style="color:#333"><strong>Carrier:</strong></span> {carrier}<br />{delay}<br/><br /> <span style="color:#333"><strong>Payment:</strong></span> {payment} </span> Link to comment Share on other sites More sharing options...
Recommended Posts