We want our customers to be able to display UPS tracking information with one click. The preceding code in this thread takes customers to the UPS web site with one click. The code below actually displays the specific UPS tracking information with one click, as well as displaying the UPS web site link.
We have added this code to mail/html/order_customer_processed.tpl and to /mail/html/order_invoice.tpl, which is included in
/mail/html/order_notification_admin.tpl, so that the customer and the administrator both can access the UPS details with equal ease (and, of course, the administrator also can track the order from the Admin Orders module).
Here is the code:
Code:
{if $order.tracking}
<tr>
<td>
{$lng.lbl_tracking_number}:</td>
<td width=10></td>
<td><tt><span class="normaljump">
{$order.tracking}</span></tt>Click number to track.</td>
</tr>
<tr>
<td>
{$lng.lbl_ups_link}:</td>
<td width=10></td>
<td><tt><span class="normaljump">
http://www.ups.com/WebTracking/track?loc=en_US</span></tt>
</td>
</tr>
{/if}
The <span class="normaljump">...</span> statements cause the jumps to display in blue in our emails.
Enjoy!
John Hughes