View Single Post
  #1  
Old 06-10-2005, 12:27 PM
 
Allan Martel Allan Martel is offline
 

Advanced Member
  
Join Date: Mar 2004
Posts: 72
 

Default 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:
{* $Id: order_customer_complete.tpl,v 1.5 2004/06/21 12:13:27 max Exp $ *} {config_load file="$skin_config"} {include file="mail/html/mail_header.tpl"} {$lng.lbl_dear} {$customer.title} {$customer.firstname} {$customer.lastname}, {$lng.eml_order_complete} This is confirmation that the products you ordered have been shipped to you! Shipping usually takes 3-5 days depending on your location. Your UPS tracking number is {$order.tracking} Please allow up to 24 hours for the UPS tracking system to update this information. <HR size="1" noshade> <FORM name="noname" method="POST" action="http://wwwapps.ups.com/tracking/tracking.cgi" > <INPUT name="accept_UPS_license_agreement" type="hidden" value="yes" > <INPUT name="nonUPS_title" type="hidden" value > <INPUT name="nonUPS_header" type="hidden" value > <INPUT name="nonUPS_body" type="hidden" value > <INPUT name="nonUPS_footer" type="hidden" value > <INPUT name="tracknum" type="hidden" value="{$order.tracking}"> <INPUT type="submit" value="{$lng.lbl_track_it}"> {$lng.txt_ups_redirection} </FORM> <HR size="1" noshade> <TR> <TD colspan="3">{include file="mail/html/order_data.tpl"}</TD> </TR> </TABLE> {include file="mail/html/signature.tpl"}

If desired, you can also change (Line 39)

Code:
<TD colspan="3">{include file="mail/html/order_data.tpl"}</TD>

to

Code:
<TD colspan="3">{include file="mail/html/order_invoice.tpl"}</TD>

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
____________
____________
Reply With Quote