Jump to content
Latest News: (loading..)
insaini

Canada Post Automated Labels 2.0 AND Canada Post Shipping Module 4.0

Recommended Posts

Hello

 

Before I begin to debug my intergration is this add-on......

 

I'm experiencing the problem if you select a returned option and click continue,

Osc thinks for a bit and then returns to the shipping options, I cannot

Proceed past this page.

I I have other modes installed and select one of those, I can proceed with the

Checkout, but not of I select a Canada post option

 

Wes this a known bug that I may have missed, or is it something I possibly

Missed intergration the module wih my site

 

Thanks

Johnny

Share this post


Link to post
Share on other sites

Resolved:

 

I commented out a line that displayed the shippment type on the confirmation page in the sub-total,. as it seem to be a lot of text to be displayed. I will just cut it down to the minimum to be displayed

Share this post


Link to post
Share on other sites

I have the odd (about once every twenty to fity transactions) problem where the module will only charge $1 or $2 for the postage. It also won't put in the type of postage purchased, rather it simply has "1:" or "2:" in the box in the "Details".

 

Normal "Details" Canada Post result:

 

Wrong "Details" Canada Post result:

 

(sorry for using links, images would not show properly)

 

So, is this a code problem when it can't get a response from Canada Post or what? If it is a problem not getting a response it should NOT generate a wrong amount like this, it should try again or cough up an error message saying "Can't get a quote right now, please try again" or similar...

 

If I edit it in "Details" everything then works as expected.

 

Thanks!

Edited by Pinball

Share this post


Link to post
Share on other sites

Cross-over post from

osc234 w/ Bootstrap & Canada Post Shipping Module

 

Well, I've been struggling with the other end, trying to get the original admin interface working for generating labels - and I think I may have found the script to do just that. This doesn't use REST or SOAP, rather it gets you from the login screen directly to the Canadian destination data entry page where the original script should run just fine. While you are in the Canadian data page you can change to the US or International pages  OR you can write PHP code so the final line of the following script will sort out the destination Domestic/US/International.

 

Note this was done using Firefox running on OSX Yosemite and the Selenium extension.

 

Now I am no PHP code jockey, so I can't rewrite the code, but I'm hoping that someone here (greasemonkey or Insaini?) recognizes what I have found and can fix ship_canadapost.php -

Canada Post Automated Labels 2.0 AND Canada Post Shipping Module 4.0

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="https://sso.epost.ca/sso/lfe/ui/login?" />
<title>CanadaPostSeleniumLoginShipment-PrivateBrowsing1</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">CanadaPostSeleniumLoginShipment-PrivateBrowsing1</td></tr>
</thead><tbody>
<tr>
    <td>open</td>
    <td>https://sso.epost.ca/sso/lfe/ui/login?</td>
    <td></td>
</tr>
<tr>
    <td>assertTitle</td>
    <td>Sign in or sign up to Canada Post or epost | Canada Post</td>
    <td></td>
</tr>
<tr>
    <td>click</td>
    <td>id=sso_username</td>
    <td></td>
</tr>
<tr>
    <td>type</td>
    <td>id=sso_username</td>
    <td>#your CP number#</td>
</tr>
<tr>
    <td>click</td>
    <td>id=sso_remember</td>
    <td></td>
</tr>
<tr>
    <td>click</td>
    <td>id=sso_password</td>
    <td></td>
</tr>
<tr>
    <td>type</td>
    <td>id=sso_password</td>
    <td>#your CP password#</td>
</tr>
<tr>
    <td>click</td>
    <td>id=sso_action</td>
    <td></td>
</tr>
<tr>
    <td>open</td>
    <td>https://est.canadapost.ca/esto/app/shipment/domestic?execution=e1s1</td>
    <td></td>
</tr>
</tbody></table>
</body>
</html>

Note that for the Rates portion (customers side) I am using canadapost.php which is the other part of the above links package. Which works fine for me, it is accurate and uses dimensions which are forwarded to sellonline.canadapost.ca where it looks up your boxes and sees which box it can stuff the items into, giving you the box name and costs back to your shopping cart customer.

Edited by Pinball

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×