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