Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

CanadaPost module and multiple items...


knuckles

Recommended Posts

after much hair pulling, I have noticed the following...

 

try this...

 

put several DIFFERENT items in your cart and head for the checkout, in this example i used 6 items weighing 0.22kgs each which all fit into 1pkg with a tare weight of 0.20kg, the canadapost server returns the following which is correct... (using rate code 6)

 

Canada Post (1 x 1.52kgs)

Priority Courier, 2002-12-20 $14.34

Expedited, 2002-12-20 $5.59

Regular, 2002-12-23 $5.59

 

Now, put 6 of the same item in your cart and head for the checkout...

osc will display the same correct total weight,

 

Canada Post (1 x 1.52kgs)

 

but the canadapost server somehow thinks you have 6 * 1.52kgs

and returns the following...

 

Canada Post (1 x 1.52kgs)

Priority Courier, 2002-12-20 $19.67

Expedited, 2002-12-20 $8.71

Regular, 2002-12-23

 

which would be the right quote if the pkg did weigh (6 * 1.52 - tare_weight)8.92kgs

 

I know Kenneth is the authority on this module hopefully he will have time to investigate over the holidays :0

 

Another thing I found confusing is the same settings which can be configured in the cp module in osc and in the account management on the canadapost server. Som can be set either in osc or on the server, but some need to be configured on both, like the tare weight.

 

If you set your tare weight to .5kgs in osc, it will add the .5kg to the total weight and display it properly in osc, but if your pkg weight on the server is set to 1kg, the quotes returned will be for .5kg more than what osc is displaying. Best thing to do i think is to make sure the tare weight in osc and on the server are the same.

 

peace everyone, happy holidays.

I pitty the fool who does'nt like avatars...

Link to comment
Share on other sites

In /catalog/includes/modules/shipping/canadapost.php I modified this line...

 

$this->item_weight[$index] = ( $weight ? (string)$weight * $quantity : '0' );

 

like this...

 

$this->item_weight[$index] = ( $weight ? (string)$weight : '0' );

 

and it seems to be operating fine now :)

 

Everyone should still wait for Kenneth's official word on this, my so called "fix" could be screwing something else up that I havent noticed yet. But like I said, it SEEMS fine now.

I pitty the fool who does'nt like avatars...

Link to comment
Share on other sites

In /catalog/includes/modules/shipping/canadapost.php I modified this line...

 

$this->item_weight[$index] = ( $weight ? (string)$weight * $quantity : '0' );

 

like this...

 

$this->item_weight[$index] = ( $weight ? (string)$weight : '0' );

 

Though I haven't find time to test yet, I think this fix is CORRECT.

I will update the package after I test it by myself.

Kenneth Wang

VA3RRW/BD4RR

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...