Pulling the tracking number into an "Order Shipped" email
-
- Lieutenant, Jr. Grade (LT JG)
- Posts: 47
- Joined: Wed May 07, 2008 1:44 pm
- Location: Houston, TX
- Contact:
Pulling the tracking number into an "Order Shipped" email
Does anyone know the string to call a tracking number? I am trying to include it in our "Order Shipped" email template.
Re: Pulling the tracking number into an "Order Shipped" email
Here's a sample of the Nvelocity markup:
You'll need to add or change some logic depending on how you ship (this store only uses Fedex).
-Nick
Code: Select all
<strong>Tracking Numbers:</strong>
<div>
#foreach($shipment in $order.Shipments)
#foreach($trackingnumber in $shipment.TrackingNumbers)
<a href="http://www.fedex.com/Tracking?tracknumbers=$trackingnumber.TrackingNumberData">$trackingnumber.TrackingNumberData</a>
#end
#end
-Nick
Nick Cole
http://www.ethofy.com
http://www.ethofy.com
-
- Lieutenant, Jr. Grade (LT JG)
- Posts: 47
- Joined: Wed May 07, 2008 1:44 pm
- Location: Houston, TX
- Contact:
Re: Pulling the tracking number into an "Order Shipped" email
Perfect! Thank you.