View Single Post
  #23  
Old 12-29-2007, 06:48 PM
 
MoonDog MoonDog is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 93
 

Default Re: Add a UPS "track it" button to customer email

Quote:
If there would be an ingenious way to tie these two mods in together.. it would be great

"track it" button in customer email

and

ability to select shipping carrier for tracking numbers

Both of these simple mods are excellent. If the customer could somehow get a link in their email with the corresponding carrier selected, it would be perfect (instead of using iship.com or google)
for X-Cart v4.1.8
try this, replace your skin1/mail/html/order_customer_complete.tpl with the one below:
Code:
{* $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} <br> This is confirmation that the products you ordered have been shipped to you! <br> Shipping usually takes 3-5 days depending on your location. <br> {if $order.tracking} Your {$order.shipping_vendor} tracking number is {$order.tracking} <br> Please allow up to 24 hours for the {$order.shipping_vendor} tracking system to update this information. {/if} <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">&nbsp;</td> <td width="80%"><tt>#{$order.orderid}</tt></td> </tr> <tr> <td><b>{$lng.lbl_order_date}:</b></td> <td width="10">&nbsp;</td> <td><tt>{$order.date|date_format:$config.Appearance.datetime_format}</tt></td> </tr> {if $order.tracking} <tr> <td><b>{$lng.lbl_tracking_number}:</b></td> <td width="10">&nbsp;</td> <td><tt>{$order.tracking}</tt></td> <tr> <td><b>Track your order:</b></td> <td width="10">&nbsp;</td> {assign var="postal_service" value=$order.shipping_vendor|truncate:3:"":true} <td><tt> {if $postal_service eq "UPS"} {include file="modules/Order_Tracking/ups.tpl"} {elseif $postal_service eq "DHL"} {include file="modules/Order_Tracking/dhl.tpl"} {elseif $postal_service eq "USP"} {include file="modules/Order_Tracking/usps.tpl"} {elseif $postal_service eq "Fed"} {include file="modules/Order_Tracking/fedex.tpl"} {else $order.tracking} {/if} {/if} </tt></td></tr> <tr> <td colspan="3">{include file="mail/html/order_data.tpl"}</td> </tr> </table> {include file="mail/html/signature.tpl"}

- MoonDog -
__________________
X-CART Gold v4.1.8
Reply With Quote