i updated to 3.x-dev to solve another problem but i'm still having trouble with the canada post shipping method. i have a retailer id and a live drupal installation that i am willing to give access to in order for this to get resolved. please contact me if you can help.
when i try to test the canada post shipping method, i initially get the "db_queryd" error which i then change to "db_query". when i test at that point, there is no error but when checking out, i get to a place where i select a payment method and then i get to a screen that asks me to select a shipping method but there are none to select from.
ron
| Comment | File | Size | Author |
|---|---|---|---|
| #20 | canadapost.patch | 1.86 KB | kbahey |
| #16 | canadapost.patch | 2.41 KB | kbahey |
Comments
Comment #1
ron collins commentedone difference between the behaviour for anonymous users and logged in users is that logged in users see:
"canadapost configuration error. Please notify the site administrator" when they get to the shipping page instead of the blank page with the "continue" button that anonymous users see.
Comment #2
brmassa commentedron,
despite the db_queryd problem (which was corrected on eC4), it seems you are trying to access the shipping page before the address page on checkout. try to reorder them.
regards,
massa
Comment #3
brmassa commentedron,
despite the db_queryd problem (which was corrected on eC4), it seems you are trying to access the shipping page before the address page on checkout. try to reorder them.
regards,
massa
Comment #4
ron collins commentednope. here is the order that i have seen on the screen order page for some time:
ec_anon
address
payment
flexicharge
shipping
cart
Comment #5
brmassa commentedRon,
shipping/ship calc modules check which shipping methods can be used from a giving set of products. Maybe your products are too big, maybe too heavy or maybe your default Fullfilment center has a ZIP code that the method doesnt allow (USPS wont work on Australia).
take a look on this.
regards,
massa
Comment #6
ron collins commentedno luck. i am trying to buy small objects. i am using a valid vancouver postal code to deliver to and H3N1T7 is the only fulfillment centre which is from montreal.
the site is at http://savonpopulaire.ca if that is of any use. there is a c.o.d. payment method and if you put "test" in the name, your order won't get processed (if you can place one).
Comment #7
ron collins commentedi'm willing to throw some cash at getting this resolved. any one willing to log in and take a look around?
Comment #8
ron collins commentedstill looking to pay someone to help out with this.
Comment #9
gordon commentedDo you have a test site and ssh access?
Comment #10
ron collins commentedi don't mind working on the live site in this case. db's are backed up nightly. if you require a test site, i'll create one. i can provide you with ssh access.
Comment #11
gordon commentedIf you can contact me though my contact page, we can discuss fixing this.
Gordon.
Comment #12
rickvug commentedIs port 3000 active on your server? I believe that this is the port that CanadaPost uses to communicate.
Comment #13
ron collins commentedthe firewall has been turned off.
now i'm seeing "canada post configuration error". when i run the test, nothing happens. no message, just returned to the canada post config page.
Comment #14
ron collins commentedhi gordon,
i'm not sure what has happened to you. we were mailing back and forth about this for a while and then i stopped hearing from you. no response to my last few emails. should i try to find someone else to work on this? i really need to get this done now. the client has been super patient but her ecomm site has been down for a months.
ron
Comment #15
kbahey commentedHi
I am investigating this, and I am able to reproduce it. I should have a solution to this by mid next week.
Contact me if you are interested in funding the solution.
Comment #16
kbahey commentedThe problem I saw on a client site had many reasons:
1. They had a javascript hack to provide a "same as billing" for the address, and it caused the empty province and postal code to be sent to CanadaPost's server, and hence it comes back with an error (XML parse error).
2. They had most products missing the dimensions and/or weight, and hence they also gave an error.
3. CanadaPost's server often sent truncated responses. The solution was to put in a delay between the fwrite() to the server and the fread() for the response. It seems that 800 milliseconds works well. Patch attached for this.
Another thing about the code in the .inc, is that it does not pass back the specific error in a meaningful way to the user/admin of the site. All errors are just errors, with no specific info from CanadaPost as to why there is an error. This is beyond the scope of the above patch, and should be fixed in another attempt.
Gordon, I have commit access to ecommerce. If you want me to commit this directly, let me know.
Comment #17
dirkson commentedHey all. Having the same problems, applied this patch... No go.
Examples:
store2.frogstar.ca
newstore.frogstar.ca
No matter what I try, I can't seem to get the canada post module working. Help?
-Dirkson
Comment #18
kbahey commentedMake sure you have dimensions and weight for the all items. Add valid dimensions for one item, and test with it (add it to cart, then checkout).
Otherwise, check the canadapost.debug file for the XML request and responses from Canada Post.
Comment #19
dirkson commentedAdded dimensions and weight, to zero effect. I'm unable to get the canadapost.debug file to actually work. I check either "enabled" or "disabled, click "save", and it just forgets the setting.
Sorry :-/ Anything else I can try?
Comment #20
kbahey commentedTry this patch instead. There is no option for the debug file, it is always on.
The file should be in the temp directory as set in the file system settings in Drupal.
Comment #21
davea commentedCan anyone provide feedback on this patch and whether it works or not?
Thanks
DaveA
Comment #22
carole commentedIt doesn't work. I get stuck with a "Choose a Shipping Method" screen with no options, no matter what variety of Canada Post APIs I enable. Now I'm trying to disable shipcalc altogether so I can launch with lesser functionality and manual work arounds, and I cannot suppress the "Choose a Shipping Method" screen even if I disable the shipcalc module. I'm stuck and would love to collaborate on a solution - hire a coder, get a UPS account to work (they haven't approved my account application so I cannot proceed with them either), or get flexicharge to take over shipping (which is failing for the reasons stated above). If anyone has a work around, I would sincerely appreciate it.
Comment #23
kbahey commentedDid the patch apply cleanly? It was done some time ago, so the code for ecommerce may have changed since then.
It sure did work at the time.
Comment #24
carole commentedI manually applied the patch, so I can't confirm CVS. The eComm 3.5 code ships with the buggy version, I manually made the fix in the code. It runs seems to run cleanly (since I get no error messages) but the functionality is still buggy - no matter what Canada Post APIs I select, they do not appear on my "Select Shipping Method" screen.
I would love to know the difference between your working version and my buggy one. I'm testing with a tangible product with dimensions entered, I've tested diverse addresses and confirmed addresses are entered before shipping, and shipping has never worked once.
Comment #25
ron collins commentedthe patch applies cleanly to 3.5. however there is still the problem with the db_queryd function appearing in the canadapost.inc file. i believe it is working correctly.
Comment #26
carole commentedI fixed the db_queryd and no luck.
elraun, can I give you my canada post account number and see if it works on your site? I've checked it visually, but since I can't get orders through, I can't truly test it.
Now I'm stuck with my work around. I turned off shipping api, and now I cannot manually send out shipping notifications or update orders to "shipped." This is a circular problem, I need a path out.
Comment #27
kbahey commented@carole
I created this patch for a client, and for elraun's client, and it does work.
If you want, I can take a look, preferably on a test site that is a copy of the live site.
Use my contact tab if you want me to investigate further.
Comment #28
ron collins commented@carol: make sure you have a weight and size for each item you are trying to ship and that the total weight and size is within the limits for the shipping method you are trying to use.