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

Parcel Tracking for your Customers

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 04-04-2010, 03:52 AM
  Dan.roh's Avatar 
Dan.roh Dan.roh is offline
 

eXpert
  
Join Date: Jul 2008
Posts: 397
 

Default Parcel Tracking for your Customers

Hi Guys,

This is something I would like to share, not sure if there is something like this already on the forum but here goes...

This mod will allow your customers to track their parcels online from your site, I use CityLink as my courier but you might need to change the code to suit your courier.

I should have really placed the code into a tpl. file but instead I just created an static page as this would do me just fine.

The code can be used in any way that suits you or placed anywhere on your site. I have placed mine under "order history" on my storefront. If this is what you want then do the following:

**You would need to use your own images or feel free to copy mine**
**The code is a bit messy but feel free to change**

1. Create a language variable - lbl_parcel_tracking and place Parcel tracking in it.

2. Create a static page in you admin side (call it Parcel Tracking) and place the following code in it

Quote:
<p style="color: rgb(166, 0, 1;"><span class="ParcelTracking" style="font-size: 14pt;">CityLink Parcel Tracking</span></p>
<p><span class="ParcelTracking" style="font-size: 14pt;"></span>Use your unique customer order number (e.g. WO00000) in the form
below to track the current progress of your order.</p>
<p> This will open in a new page so please ensure you have any
pop-up blockers turned off, thank you.</p>
<div class="TrackOrderBoxWrapper">
<div class="TrackOrderBoxTop">
<img height="9" width="9" src="http://www.your site.co.uk/skin1/images/spacer.gif" alt="" /></div>
<div class="TrackOrderBoxMiddle">
<form action="http://www.city-link.com/track_parcel/track_parcel.php" name="track" id="track" method="get" target="_blank">
<table cellspacing="0" cellpadding="0" border="0" width="340">
<tbody>
<tr>
<td width="100"><span style="font-weight: bold;">Order Number:</span></td>
<td width="162">
<input type="text" name="custref" class="SearchField" value="" />
<input type="hidden" name="hidebanners" value="1" />
</td>
<td width="53">
<input type="image" src="http://www.your site.co.uk/skin1/images/track_search.jpg" alt="Search" /></td>
</tr>
</tbody>
</table>
</form>
</div>
</div>
<div class="ParcelTracking">
<img height="9" width="9" src="http://www.your site.co.uk/skin1/images/spacer.gif" alt="" />
<div class="TrackOrderVan">
<img height="150" width="200" src="http://www.your site.co.uk/skin1/images/city_link_van.jpg" alt="City Link Order Tracking" /></div>
</div>


3. Open /customer/menu_cart.tpl and place the following between two If statements where you want it to appear to call your code

Quote:
<a href="http://www.your site.co.uk/pages.php?pageid=50">{$lng.lbl_parcel_tracking}</a>
{if $user_subscription ne ""}


The results can be seen here

http://www.customoid.co.uk/pages.php?pageid=50



Hope someone find this useful
__________________
Regards

Dan


Xcart version:
4.1.10 GOLD
Reply With Quote
  #2  
Old 04-04-2010, 05:33 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Parcel Tracking for your Customers

Nice, I did some thing similar yesterday, supporting Royal Mail, Parcelforce, Citylink, USPS and Canada Post...
http://www.xcartmods.co.uk/snippet-handy-parcel-tracking-mod.html
http://www.xcartmods.co.uk/images/D/track.jpg
__________________
xcartmods.co.uk
Reply With Quote

The following user thanks PhilJ for this useful post:
fiberglass.supply (10-01-2013)
  #3  
Old 04-04-2010, 05:46 AM
  Dan.roh's Avatar 
Dan.roh Dan.roh is offline
 

eXpert
  
Join Date: Jul 2008
Posts: 397
 

Default Re: Parcel Tracking for your Customers

Thanks, but you should have posted it yesterday...lol - that way I would not have wasted half of my day, could have just copied yours...

Quote:
Originally Posted by PhilJ
Nice, I did some thing simliar yesterday, supporting Royal Mail, Parcelforce, Citylink, USPS and Canada Post...
http://www.xcartmods.co.uk/snippet-handy-parcel-tracking-mod.html
__________________
Regards

Dan


Xcart version:
4.1.10 GOLD
Reply With Quote
  #4  
Old 04-05-2010, 09:35 AM
  gizmo's Avatar 
gizmo gizmo is offline
 

X-Adept
  
Join Date: Jan 2005
Location: Crawley : UK
Posts: 618
 

Default Re: Parcel Tracking for your Customers

Quote:
Originally Posted by PhilJ
Nice, I did some thing similar yesterday, supporting Royal Mail, Parcelforce, Citylink, USPS and Canada Post...
http://www.xcartmods.co.uk/snippet-handy-parcel-tracking-mod.html


Very handy indeed, Dan Are you using phils now? lol.....
__________________
Thank You - Alan
Don't be like me, and keep saying "Nearly did it" go do it!!
Version: 4.4.4 Gold -
Reply With Quote
  #5  
Old 04-05-2010, 10:50 AM
  Dan.roh's Avatar 
Dan.roh Dan.roh is offline
 

eXpert
  
Join Date: Jul 2008
Posts: 397
 

Default Re: Parcel Tracking for your Customers

Phils mod is much more advanced I would say, but all I really needed was for it to work with CityLink. When I do upgrade my shipping options in the near future I will definitely upgrade to Phil▓s mod!

By the way, great mod Phil! Just found it too late or shall I say you posted it too late...lol

Quote:
Originally Posted by gizmo
Very handy indeed, Dan Are you using phils now? lol.....
__________________
Regards

Dan


Xcart version:
4.1.10 GOLD
Reply With Quote
  #6  
Old 04-05-2010, 03:18 PM
  Sparks's Avatar 
Sparks Sparks is offline
 

eXpert
  
Join Date: Dec 2009
Posts: 339
 

Default Re: Parcel Tracking for your Customers

Nice work on both accounts. Does it handle things like spaces all well and good etc?
__________________
Enchance your X-cart with
Marketing Manager Pro Bundle For X-cart 4.4.x Now Available
Feed Manager Pro for X-cart

Advanced Instant Product Search - Google style searching for your site
Glossary Mod - Help customers educate themselves
Feed Manager 3 Deal Pack - Get Started with Google Base and More
Bing X-cart export Feed - Send your items to Bing with this easy mod.

http://www.firetanksoftware.com
Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods
Reply With Quote
  #7  
Old 04-05-2010, 08:34 PM
  Dan.roh's Avatar 
Dan.roh Dan.roh is offline
 

eXpert
  
Join Date: Jul 2008
Posts: 397
 

Default Re: Parcel Tracking for your Customers

Not sure what you mean with spaces? When a customer types in a tracking number that is incorrect the courier's website will notify them that the tracking number is not valid. Nothing much you can do there as this will be different from every courier company's website. Some courier websites only take lower case tracking numbers so the customer will just have to type it the way it is or copy and paste it for that matter

Quote:
Originally Posted by Sparks
Nice work on both accounts. Does it handle things like spaces all well and good etc?
__________________
Regards

Dan


Xcart version:
4.1.10 GOLD
Reply With Quote
  #8  
Old 06-17-2010, 12:35 AM
  isaels@i-artsupplies.co.u's Avatar 
isaels@i-artsupplies.co.u isaels@i-artsupplies.co.u is offline
 

Advanced Member
  
Join Date: May 2010
Posts: 67
 

Default Re: Parcel Tracking for your Customers

I have got this to come up in the customer email. But its not displaying properly nor is it when I put it in the customer home tpl.

I cant get an example up but is only dispays the drop down box with the shipping companies in it. Ther is no option to enter the tracking number.

Like I said this happens in the site too.

Any Ideas?
__________________
Paul Wallace

X-Cart Gold 4.3.2
Php5.3.8
MySQL 5.1.56

Backorder/PreOrder
SEO All in one CDSEO
Wholesale Option Pricing
Gift Cert Recovery
Password Recovery
CompanyLogo Alt Tag
Smart Search - ALtered Cart
On Sale - Altered Cart
Sitemap
MM One page checkout
order page emailer

Remember Anomymous Carts
Website CM Speed Opitmisation

iartsupplies.co.uk
Reply With Quote
  #9  
Old 06-17-2010, 02:43 AM
  Dan.roh's Avatar 
Dan.roh Dan.roh is offline
 

eXpert
  
Join Date: Jul 2008
Posts: 397
 

Default Re: Parcel Tracking for your Customers

Which one are you using? Mine or Phil's?


Quote:
Originally Posted by isaels@i-artsupplies.co.u
I have got this to come up in the customer email. But its not displaying properly nor is it when I put it in the customer home tpl.

I cant get an example up but is only dispays the drop down box with the shipping companies in it. Ther is no option to enter the tracking number.

Like I said this happens in the site too.

Any Ideas?
__________________
Regards

Dan


Xcart version:
4.1.10 GOLD
Reply With Quote
  #10  
Old 06-17-2010, 09:06 AM
 
Tony Pearce Tony Pearce is offline
 

eXpert
  
Join Date: Apr 2004
Location: Totnes, Devon, UK
Posts: 217
 

Default Re: Parcel Tracking for your Customers

In my version of 4.1.12 you need this bottom line:

{include file="menu.tpl" menu_title="Parcel Tracking" menu_content=$smarty.capture.menu}

notice:

menu_

works great for me!

Thanks very much
__________________
X Cart version 4.1.9, 4.1.10, 4.1.11, 4.1.12
(Looking after 15 stores)
Just started 4.4.1 for client....
One Page Checkout, On-Sale, Dynamic Images ++++ Loads of others.
+ 2 Multi Domain stores on 4.1.9
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 07:57 PM.

   

 
X-Cart forums © 2001-2020