Variable to insert TRACKING NUMBER in an email template?

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
bugman
Commander (CMDR)
Commander (CMDR)
Posts: 123
Joined: Tue Mar 19, 2013 8:53 am

Variable to insert TRACKING NUMBER in an email template?

Post by bugman » Mon Sep 22, 2014 12:02 pm

What is the variable for Tracking Number, and the syntax to insert it into an email template?

We use Shiprush to process & ship orders, and have it set to send the shipment tracking info once the shipment is processed. Sometimes there is a problem with an order that results in the shipment having to be voided, and a new shipment processed - so it now has a different tracking number than the one Shiprush originally emailed to the customer.

When this happens, we go into the order details & update the customer's order info with the new correct tracking number. While we're in there, we'd like to click on customer's email address & email them a predefined template that gives them their new tracking number.
Thanks!

--
bugman
AbleCommerce for ASP.NET
VERSION: 7.0.90.8302
Release Label: GoldR10

bugman
Commander (CMDR)
Commander (CMDR)
Posts: 123
Joined: Tue Mar 19, 2013 8:53 am

Re: Variable to insert TRACKING NUMBER in an email template?

Post by bugman » Thu Sep 25, 2014 9:33 am

Anybody?....
Thanks!

--
bugman
AbleCommerce for ASP.NET
VERSION: 7.0.90.8302
Release Label: GoldR10

rmaweb
Commander (CMDR)
Commander (CMDR)
Posts: 118
Joined: Fri Sep 10, 2010 9:41 am

Re: Variable to insert TRACKING NUMBER in an email template?

Post by rmaweb » Thu Sep 25, 2014 1:33 pm

For our AC7 email templates we have

Code: Select all

#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
Still in the process of upgrading to Gold, have not tested it there yet.
Ryan A.
Scott's Bait and Tackle
http://store.scottsbt.com
Work In Progress
Able Gold R10
Bootstrap 3.3

Post Reply