View Single Post
  #34  
Old 03-05-2009, 02:39 AM
 
floyd_2 floyd_2 is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 69
 

Default Re: Ability to select shipping carrier for tracking numbers

Ok, you knew I wouldn't let it go at that didn't you...

Assuming you're using CA Post...CA Post uses a slightly different URL for multi consignment tracking. The code you need to use is based on this:


Forgetting the two dummy consignment numbers in there, you really just need to change basicPin.do to multiPinPool.do in your existing query string. That's the first bit.

Secondly, you need to be able to string your consignment numbers in such a way that a line feed is generated between each one, whilst still keeping the syntax of the URL correct.

This is just a little ugly, but it IS cheap Delimit your consignment numbers when you type them into the Tracking Number field for an order inside X-Cart with the following string:

Quote:
%0d%0a

This will generate a line feed in the CA Post multi tracking number input window.

Whilst it will look just a little odd to the end user when they see a tracking number like:

Quote:
AA123456789AA&0d%0aAA987654321AA

it will actually work. Besides....who really looks at the actual number - its the results that we're after!

Give it a try - it worked in my tests here and means absolutely minimal changes to your X-Cart.

Dean
__________________
X-Cart Gold v4.1.8
Reply With Quote