Adding Tracking Numbers to the Order Shipped E-mail
-
- Lieutenant Commander (LCDR)
- Posts: 98
- Joined: Fri Apr 29, 2011 2:56 pm
Adding Tracking Numbers to the Order Shipped E-mail
I am looking to add tracking numbers to the Order Shipped e-mail. I did manage to find a post detailing how to get this accomplished (viewtopic.php?f=42&t=9329). However, since there are no shipping providers defined, I need to be able to generate links to the providers' tracking pages as the e-mail is generated. I thought about having it all set in the database, but the field doesn't have enough allowed characters. Is there any way to create a tracking link in the e-mail on the fly?
Re: Adding Tracking Numbers to the Order Shipped E-mail
One approach is to go ahead and set up the appropriate shipping providers and then disable them. This means the providers are in the database so you can assign a tracking number to a shipping provider and then the order shipped email and MyOrder page should generate links to the shipping providers tracking page.
-
- Lieutenant Commander (LCDR)
- Posts: 98
- Joined: Fri Apr 29, 2011 2:56 pm
Re: Adding Tracking Numbers to the Order Shipped E-mail
And this would be done through Configure > Shipping > Integrated Carriers > Add Carrier, correct?
Re: Adding Tracking Numbers to the Order Shipped E-mail
Yes. I think we might have had some trouble setting up either FedEx or UPS without an actual account number. You should be able to get a developer account for them. All the setup needs to do is set up the database entry with the correct tracking link since you won't be using these as an actual shipping provider.
-
- Lieutenant Commander (LCDR)
- Posts: 98
- Joined: Fri Apr 29, 2011 2:56 pm
Re: Adding Tracking Numbers to the Order Shipped E-mail
This should be interesting, then. The shipping providers I need this to work with are FedEx (primarily), UPS Frieght, and US Postal Service.
Re: Adding Tracking Numbers to the Order Shipped E-mail
This is the code we have in our email:
Hope that helps
~Mo
EDIT: I missed that you didn't have carriers defined, sorry! Not sure how to handle that but the suggestion to create and disable carriers sounds like it has potential.
Code: Select all
<strong>Shipment Method:</strong>
<div style="padding-left:30px;">
$shipment.ShipMethodName</div>
<strong>Shipment Status:</strong>
<div style="padding-left:30px;">
#if ($shipment.IsShipped)
Shipped
#else
Waiting to ship
#end
</div>
<p><strong>Tracking Information:</strong>
<div style="padding-left:30px;">
#foreach($trackingNumber in $shipment.TrackingNumbers)
#if($trackingNumber.ShipGateway)
#set($provider = $trackingNumber.ShipGateway.GetProviderInstance())
#set($summary = $provider.GetTrackingSummary($trackingNumber))
#if($summary.TrackingResultType == "ExternalLink")
<a href='$summary.TrackingLink'>$trackingNumber.TrackingNumberData</a>
#end
#end
#end
</div>
<BR>NOTE: Tracking# becomes live after 4:30pm EST on the day it is shipped, and we are not responsible for errors in USPS's computer system regarding unscanned packages.</p>
~Mo
EDIT: I missed that you didn't have carriers defined, sorry! Not sure how to handle that but the suggestion to create and disable carriers sounds like it has potential.
~Mo
Maureen Albertson
Scott's Bait & Tackle / Mystic Reel Parts LLC
Contact Me Via Store Website
Ablecommerce Gold R11 Catalog LIVE
Maureen Albertson
Scott's Bait & Tackle / Mystic Reel Parts LLC
Contact Me Via Store Website
Ablecommerce Gold R11 Catalog LIVE