| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Add a UPS "track it" button to customer email | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Add a UPS "track it" button to customer email
Hello all,
Here is a simple little Template Mod I did to add a "Track it!" button to the email order receipt that redirects to the UPS tracking website instead of just printing the tracking number. This allows the customer to click the button in the email and automatically go to the UPS tracking page instead of having to login and bring up their order. simply replace /mail/html/order_customer_complete.tpl with the following: Code:
If desired, you can also change (Line 39) Code:
to Code:
This will include a copy of the full invoice instead of the default order data (I personally like that better) This was done in 4.0.11, hope someone finds this usefull! Allan
__________________
____________ ____________ X-Cart v 4.0.14 X-Cart v 4.0.11 ____________ ____________ |
|||||||
#2
|
|||||||
|
|||||||
Very nicely done!
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||||
|
|||||||||
Display UPS tracking information with one click
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:
The <span class="normaljump">...</span> statements cause the jumps to display in blue in our emails. Enjoy! John Hughes
__________________
X-Cart v. 3.5.4 [Linux] PHP 4.3.9 MySQL 4.1.12 Perl 5.008005 Apache/2.0.52 [CentOS] http://www.bitsbytescomputer.com \"Trustworthy tools for biblical studies.\" |
|||||||||
#4
|
|||||||
|
|||||||
Re: Add a UPS "track it" button to customer email
THis looks great. IS there anyway you can make it work with USPS?
http://www.usps.com/shipping/trackandconfirm.htm ? Thanks!!
__________________
Version 4.1.8 |
|||||||
#5
|
|||||||||
|
|||||||||
Re: Add a UPS "track it" button to customer email
Ryan,
This will work <a href="http://trkcnfrm1.smi.usps.com/PTSInternetWeb/InterLabelInquiry.do?origTrackNum=nnnnn "> </a> but you will have to write a PHP script to automatically place the real tracking number where you see the nnnnn above. John
__________________
X-Cart v. 3.5.4 [Linux] PHP 4.3.9 MySQL 4.1.12 Perl 5.008005 Apache/2.0.52 [CentOS] http://www.bitsbytescomputer.com \"Trustworthy tools for biblical studies.\" |
|||||||||
#6
|
|||||||
|
|||||||
Re: Add a UPS "track it" button to customer email
Thanks! All I did was add <a href="http://trkcnfrm1.smi.usps.com/PTSInternetWeb/InterLabelInquiry.do?origTrackNum={$order.tracking }"><b>{$order.tracking}</b> to the email it it worked like a charm!
__________________
Version 4.1.8 |
|||||||
#7
|
|||||||
|
|||||||
Re: Add a UPS "track it" button to customer email
For anyone who uses more than one shipper you can use google to track shipments as well.
http://www.google.com/search?q={$order.tracking}
__________________
Version 4.1.8 |
|||||||
#8
|
|||||||
|
|||||||
Re: Add a UPS "track it" button to customer email
Holly Crap didnt know that existed !!!!! Works Great !
Quote:
__________________
http://www.lingerieblowout.com Version 4.1.10 http://www.topnichewebsites.com Version 4.4.5 Michael |
|||||||
#9
|
|||||||
|
|||||||
Re: Add a UPS "track it" button to customer email
Here's what I'm using on a 4.1.6 cart:
{* $Id: order_customer_complete.tpl,v 1.10 2006/03/31 05:51:43 svowl Exp $ *} {config_load file="$skin_config"} {include file="mail/html/mail_header.tpl"} <p />{$lng.eml_dear|substitute:"customer":"`$customer. title` `$customer.firstname` `$customer.lastname`"}, <p />{$lng.eml_order_complete} <hr size="1" noshade="noshade" /> <p /> <table cellpadding="2" cellspacing="1" width="100%"> <tr> <td width="20%"><b>{$lng.lbl_order_id}:</b></td> <td width="10"> </td> <td width="80%"><tt><b>#{$order.orderid}</b></tt></td> </tr> <tr> <td><b>{$lng.lbl_order_date}:</b></td> <td width="10"> </td> <td><tt><b>{$order.date|date_format:$config.Appear ance.datetime_format}</b></tt></td> </tr> {if $order.tracking} <tr> <td><b>{$lng.lbl_tracking_number}:</b></td> <td width="10"> </td> <td><tt>{$order.tracking}</tt></td> </tr> <tr> <td><a href="http://wwwapps.ups.com/WebTracking/processRequest?HTMLVersion=5.0&Requester=NES&Agree ToTermsAndConditions=yes&loc=en_US&tracknum={$orde r.tracking}">Click here</a> to track if UPS has received your shipment.</td> <td width=10></td> <td>You can also copy and paste your tracking number into the <a href="http://www.ups.com/WebTracking/track?loc=en_US">UPS Tracking Tool</a> if you prefer.</td> </tr> {/if} <tr> <td colspan="3">{include file="mail/html/order_invoice.tpl"}</td> </tr> </table> {include file="mail/html/signature.tpl} We only use UPS so this one works well for us. Makes a clickable link to the tracking status of that number directly and also gives the option of using the tool. Further, this brings the invoice into the "order completed" mail sent to the customer. Looks like the preview shows a space in the middle of {$order.tracking} it shouldn't be there.
__________________
Seacat X-Cart Gold v4.1.6 [linux] PHP 5.2.2 My SQL 5.0.24 DSEFU Mod Cartlab CSS Skin Several other mods Self-Defense Weapons |
|||||||
#10
|
|||||||
|
|||||||
Re: Add a UPS "track it" button to customer email
anyone have a simple method to display a UPS tracking link/button in the order complete mail if its shipped via UPS, OR a DHL tracking link/button if its shipped via DHL? but not both at the same time.
i would assume a simple IF statment would do the trick, but i'm not sure of how to implement that. thanks,
__________________
X-Cart version 4.1.7 - PHP 5.2. - MySQL server 5.0.41-community-nt - MySQL client 5.0.22 - Web server Apache/2.2.4 (Win32) - PHP/5.2.2 |
|||||||
|
|||
X-Cart forums © 2001-2020
|