I've been searching for two days for an answer to this, so hopefully someone can shed some light. I've installed Ecommerce with shipcalc (shipping and everything else is enabled...), and am attempting to use Canada Post. I got in touch with them and setup the necessary accounts, have my merchant id and so on and put all that in the shipcalc settings page and then configured the shipping for my product. First symptom is on the configuration page for Canada Post -- when I hit test it basically refreshes the page and does nothing. I read somewhere that the testing may not be functional so fine, I try the real thing.

I successfully add my product to the cart and then go to checkout and the first screen I get to asks me to choose a shipping option. All that shows up is a button saying continue which really won't let me continue because I haven't chosen a shipping option. The product itself has shipping configured because I can check all the boxes for the various services Canada Post has to offer. Just seems like it isn't getting any options from Canada Post.

Has anyone been able to get Canada Post shipping working with Ecommerce? I'm stuck at a dead end at the moment...Thanks.

CommentFileSizeAuthor
#9 Picture 2_8.png11.25 KBzorroposada

Comments

lunas’s picture

If you want to try it out - http://www.how-to-box.com/boxing/node/2596 is one of the products...

lunas’s picture

Anyone? No one else is using this in Canada? Is this working for anyone????

rickvug’s picture

Title: No Shipping Options » shipcalc: canadapost.inc not working
Category: support » bug

From http://drupal.org/node/111805:

Canada Post shipcalc sometimes works, sometimes it won't
I have installed the E-commerce module for my drupal site with the intention that I use the Canada Post shipcalc with it.
When I first registered for the VentureOne small business program by Canada Post. For a week, the IP address : http://206.191.4.228:30000
which was part of the canadapost.inc code to access the Canada Post server works. However, after a week, I keep getting fsockopen error "access denied" whenever I test my shopping cart and I am in the part where a shipping calculation is done.

I checked the Canada Post website and I since discovered that since November 30, 2006 they have changed the IP address/url that you use to access the shipping calculations to sellonline.canadapost.ca:30000

So I change the settings to point to the new URL, but ever since I get iffy results. Before when I never get any errors when I go to the shipping calculation section
of the checkout process. Now, I have variable results. There are times where I get the shipping calculation in one try, other times I get it after pressing
continue 2 or 3 or 4 times. And I keep getting this "canadapost configuration error. Please notify the site administrator." error Then after a couple of tries
the shipping calculations would go through.

Any help would be appreciated

I am working for a client that uses canadapost shipping calculations and can confirm this problem. I will be looking into the problem shortly.

Rick

rickvug’s picture

Assigned: Unassigned » rickvug

I fixed this for a client today. It turns out that the problem was that Canada Post switched from using an IP address to using a domain name without sending out notices. Also, the module was using the testing IP address rather than the production address so some Canada Post accounts did not get transfered over with the switch.

Here is how I fixed the problem:

  1. Open up the canadapost.inc file in your favorite text editor. Replace all instances of "206.191.4.228" with "sellonline.canadapost.ca. Save the file.
  2. Go into your drupal shipcalc settings and change the candapost url to "sellonline.canadapost.ca"
  3. Test the live site by adding a product to the shopping cart and checking out (the testing mechanism in the module configuration is broken)
  4. If the shipping calculator is not working you will need to get on the phone with Canada Post to make sure that your account made it onto the new server. Here is there contact info: eMail: sellonline@canadapost.ca, Tel: 1-866-511-0546 and ask for 'Sell Online Help Desk'.
  5. Shipping calculation should work now.

I'm interesting in hearing from others if this worked or not. I hope to roll a patch for this in the future.
Rick

cda_tire’s picture

It still does not work for me. I already changed the reference of 206.191.4.228 to sellonline.canadapost.ca I already checked with Canada Post and the account exist in the new server.
The behaviour I get
(1) Sometimes I get the calculated shipping costs for various Canada Post mailing services in the first try. More often than not, I would just get the "continue" button with a message saying "canadapost configuration error. Please notify the site administrator."
(2) If I hit the continue button, I would either get the calculated shipping costs for various Canada Post mailing services or a continue button with a message canadapost configuration error. Please notify the site administrator/Please choose a shipping method
(3) I have to click on that continue button multiple times before I finally get a calculated shipping costs of the various shipping services (Regular post, Expedited, etc)
(4) On the odd occasion that I got the radio button list and selected a shipping method, next screen would either be straight to the checkout
or an error "An illegal choice has been detected. Please contact the site administrator."

zorroposada’s picture

Hi,

I followed rickvug's advice but still not working for me.

I never get the list to select the shipping method, I just get the error messages and the continue button, even if I click it several times.

"Please select a shipping method." is all I get.

my site is lentelimpio.com

any advice would be greatly appreciated

Timotheos’s picture

I was getting the same behavior with the UPS one but then I followed the instructions at http://drupal.org/node/67697 and it started to work. Should be the same for Canada Post.

sime’s picture

Category: bug » support
Status: Active » Fixed

No response to final reply

zorroposada’s picture

Status: Fixed » Active
StatusFileSize
new11.25 KB

The candapost.inc still not working.

not able to see the shipping methods after clicking on checkout

followed instructions above but got same error messages and results.

please advice

zorroposada’s picture

I just tested the ecommerce_beta_4 and got the same error messages.

sime’s picture

Hi all, none of the maintainers are really looking at this, we will need patches.

gordon’s picture

It is not that no-one is looking at it, but none of the maintainers really have access to test the canadapost.inc shipping, so we need someone with access to post patches to fix this.

Alternatively give us access to it.

rickvug’s picture

Gordon et. al.,

My work has an account if you want to test. I'm on Skype 9am - 5pm PST if you want me to send the information through or chat about this. One of our developer's built this functionality originally but somewhere along the line things stopped working with Shipcalc. Maybe some small thing changed in the API?

The other change is the Canada Post servers which switched over to a new address early this year (these changes are outlined above). Switching the DNS info in the module made things work for our client on an older version of Ecommerce, although we also had to phone Canada Post technical support to get them to transfer our account information to the new server.

I wish I could update this but I simply don't have the time alloted at my job to do this for free. Things are working for our client and unless we get paid to upgrade that site to a newer install I can't troubleshoot this.

Rick

gordon’s picture

Priority: Critical » Normal

Down grading to normal, since we can't get access to be able to resolve this issue.

rickvug’s picture

Gordon, please check your email for server details. Sorry for taking a bit to get you the information. Respond here if you need any more help.

Thanks.
Rick

gordon’s picture

Status: Active » Fixed

I think this is fixed now.

The problem was that it was not using the settings which which server to use, and was going back to the old ip, that is no longer valid.

Please test and let me know.

rickvug’s picture

Your message to test this is flagged in my email. I will get to this soon. Thank you for committing those changes.

Anonymous’s picture

Status: Fixed » Closed (fixed)
Davey-1’s picture

hi, it seems like this issue was fixed based on the last few posts, however, i cant see what the solution was.

kbahey’s picture

Assigned: rickvug » Unassigned

A more current issue on this is 201042.