Jump to content

Add delivery time info to shipped.html template


Recommended Posts

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 by babyewok (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...