babyewok Posted October 23, 2014 Share Posted October 23, 2014 (edited) I have PS 1.5.6 and want to add a delivery time to the shipped.html email. I have managed to add the carrier name, by following instructions in this thread: http://www.prestashop.com/forums/topic/230876-solved-showing-carrier-in-email-template-not-working/ and changing: $templateVars = array(); to $templateVars = array('{carrier}' => $virtual_product ? Tools::displayError('No carrier') : $carrier->name ); in controllers/admin/AdminOrderController.php lin 352 However, I want to add specific text depending on the carrier. So if carrier = 'Royal Mail Special Delivery' I want {delivery_time} to be 'and should be with you tomorrow' and if it is 'International Signed for' to say: 'Please allow up to 10 working days to receive your order'. I don't seem to be having much luck trying to add an if statement for this so that the {delivery_time} note is dependant on $carrier->name Any ideas?? Edited October 23, 2014 by babyewok (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts