Adding Tracking Numbers to the Order Shipped E-mail

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
vashts1980
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 98
Joined: Fri Apr 29, 2011 2:56 pm

Adding Tracking Numbers to the Order Shipped E-mail

Post by vashts1980 » Fri Jun 29, 2012 10:01 am

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?

User avatar
david-ebt
Captain (CAPT)
Captain (CAPT)
Posts: 253
Joined: Fri Dec 31, 2010 10:12 am

Re: Adding Tracking Numbers to the Order Shipped E-mail

Post by david-ebt » Fri Jun 29, 2012 12:05 pm

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.
David
http://www.ecombuildertoday.com
Enhanced Reporting for AbleCommerce
Image

vashts1980
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 98
Joined: Fri Apr 29, 2011 2:56 pm

Re: Adding Tracking Numbers to the Order Shipped E-mail

Post by vashts1980 » Fri Jun 29, 2012 12:40 pm

And this would be done through Configure > Shipping > Integrated Carriers > Add Carrier, correct?

User avatar
david-ebt
Captain (CAPT)
Captain (CAPT)
Posts: 253
Joined: Fri Dec 31, 2010 10:12 am

Re: Adding Tracking Numbers to the Order Shipped E-mail

Post by david-ebt » Fri Jun 29, 2012 12:49 pm

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.
David
http://www.ecombuildertoday.com
Enhanced Reporting for AbleCommerce
Image

vashts1980
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 98
Joined: Fri Apr 29, 2011 2:56 pm

Re: Adding Tracking Numbers to the Order Shipped E-mail

Post by vashts1980 » Fri Jun 29, 2012 12:52 pm

This should be interesting, then. The shipping providers I need this to work with are FedEx (primarily), UPS Frieght, and US Postal Service.

User avatar
Mizmo67
Commander (CMDR)
Commander (CMDR)
Posts: 155
Joined: Wed Mar 16, 2005 5:35 pm
Location: NJ
Contact:

Re: Adding Tracking Numbers to the Order Shipped E-mail

Post by Mizmo67 » Sat Jun 30, 2012 12:39 pm

This is the code we have in our email:

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>
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.
~Mo

Maureen Albertson
Scott's Bait & Tackle / Mystic Reel Parts LLC
Contact Me Via Store Website
Image
Ablecommerce Gold R11 Catalog LIVE

Post Reply