Jump to content

[Resolved] Adding Shipping details (tracking number, shipping type etc) to "Order Complete" email status


kab
 Share

Recommended Posts

** SOLVED **

Hi,

I can see that the "Delivery" tab in "Orders" has a fair bit of useful information about the shipping of the product such as - tracking url, delivery date etc. How can I include this information in the "Order Complete" email which is sent to the customer? Currently the email has only limited information viz.

Hi XYZ,

We are pleased to say that order number 160218-173222-5577 is complete. If you have ordered physical goods they should arrive shortly.

I want to add one more line below the standard content which says -

Your order has been shipped on [Dispatch Date] by [Shipping Product]. Your tracking number is [Delivery tracking], and you can track your order here - [Shipping Method].

 
Reference fields below:
Dispatch Date: Mar 11 2016
Shipping Method: www.Trackoncouriers.com
Shipping Product: TrackOn Couriers Pvt. Ltd
Delivery Tracking: 41120116
Gateway: Print_Order_Form
Link to comment
Share on other sites

Here's the Source Code of mine. It should help you with most of what you want.

<p>
	Hi {$DATA.first_name},</p>
<p>
	Your order number {$DATA.cart_order_id} has been completed with a shipping date of {$DATA.ship_date}.</p>
<p>
	USPS Delivery Confirmation Number / Customs Number: {$DATA.ship_tracking}</p>
<p>
	To check the delivery status of your package at any time please visit:</p>
<p>
	https://www.endicia.com/Status/?PIC={$DATA.ship_tracking}</p>

I do think Bsmither had to make a code change in a class file so the ship date was human readable, and obviously the tracking link would be different for you.

Link to comment
Share on other sites

22 minutes ago, Dirty Butter said:

Here's the Source Code of mine. It should help you with most of what you want.

<p>
	Hi {$DATA.first_name},</p>
<p>
	Your order number {$DATA.cart_order_id} has been completed with a shipping date of {$DATA.ship_date}.</p>
<p>
	USPS Delivery Confirmation Number / Customs Number: {$DATA.ship_tracking}</p>
<p>
	To check the delivery status of your package at any time please visit:</p>
<p>
	https://www.endicia.com/Status/?PIC={$DATA.ship_tracking}</p>

I do think Bsmither had to make a code change in a class file so the ship date was human readable, and obviously the tracking link would be different for you.

Thanks a lot! It solves many issues for me.

Link to comment
Share on other sites

I found the code in order.class.php to make date human readable:

//BSMITHER GET READABLE DATE ON EMAILS			
case self::ORDER_FAILED:
					// Email the customer to explain their order failed fraud review
					$mailer->ClearBCCs(); $mailer->AddBCC($this->_notifyAdmins());
					
					$content = $mailer->loadContent('cart.payment_fraud', $order_summary['lang'], $this->_order_summary);
if( ($content = $mailer->loadContent('cart.payment_fraud', $order_summary['lang'])) !== false ) $this->assignOrderDetails();
break;
				break;

//END BSMITHER GET READABLE DATE ON EMAILS

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...