Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Canada Post Automated Labels 2.0 AND Canada Post Shipping Module 4.0


insaini

Recommended Posts

  • Replies 230
  • Created
  • Last Reply

Top Posters In This Topic

  • 4 months later...

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

Link to comment
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

Link to comment
Share on other sites

  • 1 month later...

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
Link to comment
Share on other sites

  • 3 years later...

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...