medalta Posted April 27, 2004 Share Posted April 27, 2004 Hi, I just installed Kenneth Wang's Canada Post Shipping module. When I go through the check out it tells me that the origin postal code is illegal and to contact the store owner. In the admin module in Configuration> Shipping/Packaging I have Canada as the country of origin T1A 3K9 as the postal code What is the proper format for the postal code? :blink: :blink: :blink: Quote Link to comment Share on other sites More sharing options...
bigpaw Posted April 28, 2004 Share Posted April 28, 2004 Hi, I just installed Kenneth Wang's Canada Post Shipping module. When I go through the check out it tells me that the origin postal code is illegal and to contact the store owner. In the admin module in Configuration> Shipping/Packaging I have Canada as the country of origin T1A 3K9 as the postal code What is the proper format for the postal code? :blink: :blink: :blink: Hello, f I can ask how did you install? I am new at this and could not find exactly where to install the module. Thanks John Falcone Quote Link to comment Share on other sites More sharing options...
medalta Posted April 28, 2004 Author Share Posted April 28, 2004 Pleasae remember you are asking a guy that installed it but hasn't got it working yet. Here's what I did I placed the 16k canadapost.php in install directory\includes\modules\shipping Then the smaller 557 byte canadapost.php in install directory\includes\languages\english\modules\shipping after that you have to go in to your admin module and install it in Configuration - Modules - Shipping The go to Configuration - Shipping/Packaging and insure your country of origin and postal code are set up properly. The problem is nobody explained what the proper configuration for the postal code is so I have to assume it is something wierd and thus the error I receive about it being illegal :( Quote Link to comment Share on other sites More sharing options...
gadzuk Posted May 13, 2004 Share Posted May 13, 2004 I'm having the same problem. Wondering if it's a problem with the test account that the module installs with CPC_DEMO_XML I've tried postal codes with and without spaces, even tried ones in larger centres (e.g. Calgary) but always the same error message. The Canada Post implementation guide doesn't seem to offer any clues. Stumped :blink: Quote Link to comment Share on other sites More sharing options...
RCAF Posted May 15, 2004 Share Posted May 15, 2004 I am currently using another shopping cart system and have a Canada Post account. I am trying to setup oscommerce cart with Canada Post. Just to let you all know that even with my active CP account I still get the Illegal Postal Code error. Hmmmm! Quote Link to comment Share on other sites More sharing options...
RCAF Posted May 21, 2004 Share Posted May 21, 2004 Problem Solved :lol: :lol: Find this line in: includes/modules/shipping/canadapost.php $this->_canadapostOrigin(STORE_ORIGIN_ZIP, $country_name['countries_iso_code_2']); and replace it with $this->_canadapostOrigin('T3J4A1', $country_name['countries_iso_code_2']); of course replace T3J4A1 with your default postal code and remember to include the ' ' Cheers, Bob Quote Link to comment Share on other sites More sharing options...
medalta Posted May 22, 2004 Author Share Posted May 22, 2004 anybody know offhand what the Canada post ip address is Quote Link to comment Share on other sites More sharing options...
medalta Posted May 22, 2004 Author Share Posted May 22, 2004 I just want everyone to know that Bob Hurst is a God ! :D My Canada Post Mod is working ! B) If I was a young single attractive female I would happily bare him a child. ;) Course . . . I am an old, married, grey haired man with two grown daughters and a lovely wife, . . . so . . . thanks a lot Bob will have to suffice :rolleyes: Larry Quote Link to comment Share on other sites More sharing options...
binare Posted June 22, 2004 Share Posted June 22, 2004 better yet, change STORE_ORIGIN_ZIP to SHIPPING_ORIGIN_ZIP and keep the original functionality. Worked for me, dont know if it will with everyone else. Quote Link to comment Share on other sites More sharing options...
Typhoonit Posted October 18, 2004 Share Posted October 18, 2004 I had the same problem with the origin postal code. Thanks to RCAF for the initial reply, I tried that and it worked. An additional thanks to binare, for the corrected code that gives the original functionality. That worked for me too. Just as a note, the full code that needs to be replaced is on line 67 Replace: $this->_canadapostOrigin(STORE_ORIGIN_ZIP, $country_name['countries_iso_code_2']); With: $this->_canadapostOrigin(SHIPPING_ORIGIN_ZIP, $country_name['countries_iso_code_2']); This worked perfectly for me. Thanks again. Quote Link to comment Share on other sites More sharing options...
-RJM- Posted November 14, 2004 Share Posted November 14, 2004 Hi, I also just installed this module as above and here is my errors when I select the shipping module from the admin page. Any ideas? Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/sites/site39/web/catalog/includes/modules/shipping/canadapost.php on line 191 Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/sites/site39/web/catalog/includes/modules/shipping/canadapost.php on line 191 Quote Link to comment Share on other sites More sharing options...
villageweb Posted March 17, 2005 Share Posted March 17, 2005 Hi all, I'm new to oscommerce and as I'm Canadian installing a cart for a Canadian Company, it looks like I'll have to do the Canada Post Module also. Did you get it from here: http://www.oscommerce.com/community/contri...rch,canada+post Susan Quote Link to comment Share on other sites More sharing options...
Guest Posted March 18, 2005 Share Posted March 18, 2005 I'm having the same problem. Wondering if it's a problem with the test account that the module installs with CPC_DEMO_XML I've tried postal codes with and without spaces, even tried ones in larger centres (e.g. Calgary) but always the same error message. The Canada Post implementation guide doesn't seem to offer any clues. Stumped :blink: <{POST_SNAPBACK}> I was using the Demo ID (which was something like CPC_DEMO). I contacted Canada Post and set up an ID for the company. I think that fixed things (I was also doing something else wrong but all is now fixed) Quote Link to comment Share on other sites More sharing options...
TNation Posted April 29, 2005 Share Posted April 29, 2005 Hi, I just installed Kenneth Wang's Canada Post Shipping module. When I go through the check out it tells me that the origin postal code is illegal and to contact the store owner. In the admin module in Configuration> Shipping/Packaging I have Canada as the country of origin T1A 3K9 as the postal code What is the proper format for the postal code? :blink: :blink: :blink: <{POST_SNAPBACK}> Do not use a space in the postal code. Quote Link to comment Share on other sites More sharing options...
shuweee Posted May 9, 2005 Share Posted May 9, 2005 hey guys, if i have a product weight 0.01 kg why is the Canada post rate return as such Canada Post (1 x 3.02kgs) why is it saying 3.02kgs? Priority Courier, 2005-05-11 $12.56 Xpresspost, 2005-05-11 $5.91 Regular, 2005-05-13 $6.15 Quote Link to comment Share on other sites More sharing options...
RCAF Posted May 9, 2005 Share Posted May 9, 2005 hey guys, if i have a product weight 0.01 kg why is the Canada post rate return as such Canada Post (1 x 3.02kgs) why is it saying 3.02kgs? Priority Courier, 2005-05-11 $12.56 Xpresspost, 2005-05-11 $5.91 Regular, 2005-05-13 $6.15 <{POST_SNAPBACK}> You need to change you CP Shipping module setup to the Canada Post production server, which is 216.191.36.73, the testing server returns a default weight. Hope that helps. Bob Quote Link to comment Share on other sites More sharing options...
joey099 Posted June 3, 2005 Share Posted June 3, 2005 (edited) I have installed Canada POst on a client's OS Installation. I followed the instructions given to fix the postal code problem but still get the same error. Here is what I have: $country_name = tep_get_countries(STORE_COUNTRY, true); ? ? ?$this->_canadapostOrigin('SHIPPING_ORIGIN_ZIP', $country_name['countries_iso_code_2']); ? ? ?$this->_canadapostDest($order->delivery['city'], $order->delivery['state'], $order->delivery['country']['iso_code_2'], $order->delivery['postcode']); I replaced the 'SHIPPING_ORIGIN_ZIP' with the customer's postal code but still the same error: " Origin Postal Code Illegal Anyone have a fix for this??? Does anyone know of a different Shipping module for canada with the exception of the Canada Post Demensions Module? Edited June 3, 2005 by joey099 Quote Link to comment Share on other sites More sharing options...
BTBJ Posted June 10, 2005 Share Posted June 10, 2005 Dumb question here, but I over thought my problem ... What weight do I use for the cp mod from K.Wang. Product listing is in lbs, by default I guess ... does this covert that lb into kg (or is my gram weight a lbs weight) ... or do I need to enter the equivalent lb weight for my gram weight items? Is there a default or something in the code I can change that allows for me to enter in gram weight and still work with this contribution. Thanks a tonne. Quote Link to comment Share on other sites More sharing options...
BTBJ Posted June 11, 2005 Share Posted June 11, 2005 Nevermind, went and edited all my weights to reflect lb in the product listing section ... and the CP ship mod works fine ... thanks fora great contribution Quote Link to comment Share on other sites More sharing options...
sidbizon Posted June 14, 2005 Share Posted June 14, 2005 I have installed Canada POst on a client's OS Installation. I followed the instructions given to fix the postal code problem but still get the same error. Here is what I have: $country_name = tep_get_countries(STORE_COUNTRY, true); ? ? ?$this->_canadapostOrigin('SHIPPING_ORIGIN_ZIP', $country_name['countries_iso_code_2']); ? ? ?$this->_canadapostDest($order->delivery['city'], $order->delivery['state'], $order->delivery['country']['iso_code_2'], $order->delivery['postcode']); I replaced the 'SHIPPING_ORIGIN_ZIP' with the customer's postal code but still the same error: " Origin Postal Code Illegal Anyone have a fix for this??? Does anyone know of a different Shipping module for canada with the exception of the Canada Post Demensions Module? <{POST_SNAPBACK}> joey099, Make sure you have changed working module, not in tmp directory. It's happened to me too Quote Link to comment Share on other sites More sharing options...
loki Posted June 25, 2005 Share Posted June 25, 2005 (edited) I just want everyone to know that Bob Hurst is a God ! I second that, after some trial and error I come over here and find this post, bam, 10 min later I have a working Canadapost shipping mod :-" Bob hurst gets demi-god status for the day, heck i'll even go for two. Now that i'm working with it and changing all of my descriptions from the zone rate calculator calculating LBS to the canadapost KGS. As I already have listed over 300+ items in my paint category alone I think it would be better for me to find a way to make the module weight in LBS. Is there a way to change the weight from KGS to LBS within the module without me hand converting? My other question is the default weight that I seem to be set in is KGS. That is fine, I guess I can convert my whole store if I had to, but I get a wierd display. I enter the weight as 1 KG to a item, and the canadapost shipping mod automatically calculates it to be 4 KGS. I guess I could figure out the fraction ratio, but i'd rater type in the weight and have it spit the same number back out to the end user. Any ideas on this one? Edited June 25, 2005 by loki Quote Link to comment Share on other sites More sharing options...
mtbkanata Posted July 5, 2005 Share Posted July 5, 2005 I've done as Bob said and updated my Canadapost.php, but I alwasy get this: Shipping Method This is currently the only shipping method available to use on this order. Canada Post XML parsing error. If you prefer to use canadapost as your shipping method, please contact the store owner. Here is my setup: Canada Post Parcel Service Enable CanadaPost Shipping True Enter CanadaPost Server IP 206.191.4.228 Enter CanadaPost Server Port 30000 Enter Selected Language(optional) en Enter Your CanadaPost Customer ID CPC_M**_KA**A Enter Turn Around Time(optional) 8 Tax Class --none-- Shipping Zone --none-- Sort Order 0 Quote Link to comment Share on other sites More sharing options...
mtbkanata Posted July 6, 2005 Share Posted July 6, 2005 Well, I am lost. I've done everything I can find on the forums here, and I was moved to the production server now.. and I still get the XML Parsing Error.. it has to be something dumb that I have or have not done... :( I even removed the space in my postal code! Quote Link to comment Share on other sites More sharing options...
soulspinr Posted August 8, 2005 Share Posted August 8, 2005 regarding shipping weights........... I entered all my weights in as lbs (imperial). For instance, one product is 3 lbs. Yet canada post is interpreting that product to be 6.75 lbs-roughly the conversion rate as if I had entered my weight in as 3 kgs and it was changing it to lbs. How do I get it to recognize that all my weights are already entered as lbs? Quote Link to comment Share on other sites More sharing options...
soulspinr Posted August 8, 2005 Share Posted August 8, 2005 Also.....kinda wondering if there's a way to eliminate one or more of the services offered? 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.