knuckles Posted December 18, 2002 Share Posted December 18, 2002 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. Quote I pitty the fool who does'nt like avatars... Link to comment Share on other sites More sharing options...
knuckles Posted December 19, 2002 Author Share Posted December 19, 2002 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. Quote I pitty the fool who does'nt like avatars... Link to comment Share on other sites More sharing options...
bd4rr Posted December 19, 2002 Share Posted December 19, 2002 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. Quote Kenneth Wang VA3RRW/BD4RR Link to comment Share on other sites More sharing options...
johnz Posted December 19, 2002 Share Posted December 19, 2002 I also made this modification when I built that CPC length/width/height mod. (http://www.oscommerce.com/forums/viewtopic.php?t=28135) It appears to work correctly. -John Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.