Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Add a UPS "track it" button to customer email

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 06-14-2007, 10:30 AM
 
samz724 samz724 is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 84
 

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

I changed the code on my side and it shows the button in the email now, etc. The button opens to the UPS page with a blank tracking# field, so that's good.

Now, the code posted after
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}
where you would click on the UPS button and it would take you to the site with the tracking information already inserted... that's what I can't figure out.

I'm new to all of this so I don't really know how to edit the codes and make them work. Thanks a lot! Take care
__________________
Samz
--------------------------------------
Heavily modified
X-Cart Gold v4.1.10
Reply With Quote
  #12  
Old 06-14-2007, 11:29 AM
 
dub713 dub713 is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 56
 

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

Quote:
Originally Posted by samz724
where you would click on the UPS button and it would take you to the site with the tracking information already inserted... that's what I can't figure out.

for the url, use this...

Code:
http://wwwapps.ups.com/WebTracking/processRequest?HTMLVersion=5.0&Requester=NES&AgreeToTermsAndConditions=yes&loc=en_US&tracknum={$order.tracking}


__________________
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
Reply With Quote
  #13  
Old 06-14-2007, 11:33 AM
 
samz724 samz724 is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 84
 

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

I had it 'rigged' another way which I just got working.. but this is definately much better heh. Thanks for your help!
__________________
Samz
--------------------------------------
Heavily modified
X-Cart Gold v4.1.10
Reply With Quote
  #14  
Old 06-16-2007, 07:18 PM
 
cutterc cutterc is offline
 

Advanced Member
  
Join Date: Aug 2006
Posts: 93
 

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

Quote:
Originally Posted by dub713
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,

This would be a great feature to really add some function to the confirmation e-mail to the customers. If anybody that has some insight to this dilema I know two of us would be much appreciative....

Thanks...
__________________
X-Cart Gold
Version 4.1.9
RMA 4.1.9
One Page Checkout v1.3.11
CDSEO
PHP 5.2.9
SQL 5.1.30

Reply With Quote
  #15  
Old 09-13-2007, 01:49 PM
 
Lingerieblowout Lingerieblowout is offline
 

X-Adept
  
Join Date: Sep 2003
Location: Annapolis, MD
Posts: 415
 

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

Where would you add a trackit now on the orders pages when a customer login to there account ...

to use the following code
<a href="http://www.google.com/search?q={$order.tracking}" target="new">TRACK IT</a>

Sorry I found it
__________________
http://www.lingerieblowout.com
Version 4.1.10

http://www.topnichewebsites.com
Version 4.4.5

Michael
Reply With Quote
  #16  
Old 09-14-2007, 07:22 AM
  vtonya's Avatar 
vtonya vtonya is offline
 

Advanced Member
  
Join Date: Apr 2007
Posts: 61
 

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

Dear friends, it there any same way we could track shipments to Canada(https://em.canadapost.ca/emo/basicPin.do?language=en), Germany(http://www.dhl.de/oservices/t_u_t/en/) and UK(http://www.parcelforce.com/portal/pw).

Please, advice. i need it very much. Thanks a lot!
__________________
X-card Gold 4.1.7
Batch Order Mod/Order Processing
Detailed Order Management Mod
Order Audit/Profit reports
Advanced Product Search
Ajax Username Checker
Direct Product Enquiry Form
FAQ Manager
Social Bookmarking
Tabs Mod v3
MagneticOne.com All-IN-ONE X-Cart Export
Show Referrer Information on Order Details Page
www.medsmarket.net
Reply With Quote
  #17  
Old 11-26-2007, 07:03 AM
 
miami.mom miami.mom is offline
 

eXpert
  
Join Date: Oct 2005
Posts: 244
 

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

I am like cutterc - I ship two methods - USPS and FedEx. Below is what I put in the e-mail... But I'd love to add an if statement that shows only the appropriate link for that customer... I'm looking for the smarty equivalent of

If order.shipping like '%FedEx%' then
'show FedEx link
else
'show USPS link
end if

*****************

{if $order.tracking}
<tr>
<td><b>{$lng.lbl_tracking_number}:</b></td>
<td width="10">&nbsp;</td>
<td><tt>{$order.tracking}</tt></td>
</tr>
<tr>
<td><b>Tracking links:</b></td>
<td width="10">&nbsp;</td>
<td><tt><a href="http://trkcnfrm1.smi.usps.com/PTSInternetWeb/InterLabelInquiry.do?origTrackNum={$order.tracking }"><b>USPS Tracking</b></a> | <a href="http://www.fedex.com/Tracking?tracknumbers={$order.tracking}&cntry_code =us&language=english&clienttype=ivother&"><b>FedEx Tracking</b></a></tt></td>
</tr>
<tr>
<td>&nbsp;</td>
<td width="10">&nbsp;</td>
<td><tt>Please allow 24 hours for tracking info to be updated.</tt></td>
</tr>
{/if}
__________________
X-Cart 4.1.8
Reply With Quote
  #18  
Old 12-11-2007, 06:17 AM
 
Funinc Funinc is offline
 

Senior Member
  
Join Date: Sep 2002
Location: CA
Posts: 108
 

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

I use UPS and DHL, would love to be able to find IF/THEN statements and also what if you have multiple tracking numbers per order??

Thanks,

4.1.6
Reply With Quote
  #19  
Old 12-11-2007, 09:36 PM
 
WebboT WebboT is offline
 

Member
  
Join Date: Aug 2006
Posts: 26
 

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

Quote:
Originally Posted by ryan c.
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}


This one is much better:

http://www.iship.com/trackit/track.asp?T=1&Track={$order.tracking}

Takes care of UPS, FedEx, USPS, DHL and Airborne Express.
__________________
X-Cart 4.2.0 | PHP 5.2.9 | MySQL 4.1.21 | Apache/1.3.41 (Unix) | Linux
Reply With Quote
  #20  
Old 12-12-2007, 04:39 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

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

Quote:
Originally Posted by Funinc
I use UPS and DHL, would love to be able to find IF/THEN statements

I did this using a little smarty brute-force...

My UPS acct # will never change.. so if the tracking number starts with my 1Z12A (or whatever your first 5 characters of your ups acct are)...

I am using this:
Code:
{* UPS ONLY *} {if $order.tracking|substr:0:5 eq '1Z12A'} <td><b>UPS&nbsp;{$lng.lbl_tracking_number}:</b></td> <td><a href="http://wwwapps.ups.com/WebTracking/processInputRequest?HTMLVersion=5.0&sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&loc=en_US&InquiryNumber1={$order.tracking}&AgreeToTermsAndConditions=yes&track.x=31&track.y=7"><tt>{$order.tracking}</tt></a></td> {* end UPS ONLY *} {else} {* iShip tracking *} <td><b>USPS&nbsp;{$lng.lbl_tracking_number}:</b></td> <td><a href="http://www.iship.com/trackit/track.asp?T=1&Track={$order.tracking}"><tt>{$order.tracking}</tt></a></td> {* end iShip tracking *}

I only ship UPS or USPS. I like using the UPS tracking for UPS. I think iShip looks better than Google for USPS.

There are other wasy to do this. This is one way.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:28 PM.

   

 
X-Cart forums © 2001-2020