Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Bug in shipping weight calc in Canada Post contrbution


4 replies to this topic

#1 The Grinch

  • Community Member
  • 47 posts
  • Real Name:John F

Posted 24 April 2003, 03:29

I've discovered another bug in the Canada Post shipping module. That brings my list up to two. Are there any programmers that would like to take on the bug fixes?

Latest bug:

Widget - 1kg. Qty=1
Canada post sees Widget - 1kg. Qty=1 (ok so far)

Widget - 1kg. Qty=2
Canada post sees Widget - 4kg. Qty=2 (oops... wrong answer)

The module is sending over the total weight for both items together. Canada Post is not expecting the weight to be pre-calculated and does 2kg + 2kg for the total shipping weight. The shipping quote is now incorrect since it's quoting on double the weight. I verified this today with a level two tech at Canada Post's Electronic Shipping Help desk (which is actually IBM).

I'm not a PHP programmer, so I'm not exactly sure how to tackle this problem. The author of the contribution appears to be missing in action.

I feel that this is a pretty serious bug, and consider it a high priority. Could someone help please? :(

#2 bd4rr

  • Community Member
  • 38 posts
  • Real Name:Kenneth Wang
  • Location:North York, ON

Posted 25 April 2003, 00:55

Fixed. Download new version (v0.2.2) here:

http://www.oscommerce.com/community/contributions,391
Kenneth Wang
VA3RRW/BD4RR

#3 goyo

  • Community Member
  • 12 posts
  • Real Name:goyo

Posted 25 April 2003, 05:44

I'm running 2 websites (oradix.com, detoxamin.ca) with Canada Post modules.
On oradix.com I'm using an older snapshot...everything is fine with Canada Post module, on detoxamin.ca I'm using a recent one....and I have nightmares.

I tried everything what suggested on oscommerce forums but still getting XML parsing error messages as Canada posts server response.

The CP server error message with an older "fixed" canada post module:
en CPC_ORADIX_COM M6R2M8 48 220 1 0.20 0 0 0 Detoxamin ONLY 1 box 30 suppositories Toronto CA M6C4A4 HTTP/1.0 200 OK Connection: Close Server: eParcel Content-Type: text/xml ]> -5000 XML parsing error. 1419221 message = XML parsing error

And with the newest one:
XML parsing errors.
If you prefer to use canadapost as your shipping method, please contact the store owner.

Any help appreciated...

#4 The Grinch

  • Community Member
  • 47 posts
  • Real Name:John F

Posted 25 April 2003, 12:46

I'm not exactly sure if this will fix your problem, but in a recent snapshot that I downloaded, I found that I had to make the following change in the Canada Post module to get it to work.

Change all cases of:
STORE_ORIGIN_ZIP 



to 



SHIPPING_ORIGIN_ZIP

Double check in the UPS or USPS included modules to see which line they contain. If it's SHIPPING_ORIGIN_ZIP, then go into the Canada Post module and make the changes.

#5 CookieBytes

  • Community Member
  • 125 posts
  • Real Name:V Carroll
  • Location:BC, Canada

Posted 08 July 2003, 06:51

Hi there,

I seem to be getting the same error with CP version 3.1 on MS1 (multiplying an already multiplied weight), so if a customer orders 10 products, they pay 10x10 of the weight. An order of 10 small books 'expedited' across 2 provinces is coming up as $49.90 (should only be about $6.40). Weight for 10 books (0.2 kg each) should total 2.2 kg, but on shipping.php it shows "10 x 2.2 kgs".
Was the above fix not applied to 3.1 or are they separate mods completely? (I'm not sure who wrote 3.1).

Thanks,
Violet