Canada Post Shipping

Hey, any tricks on getting the Canada Post integration to work?

  1. I have inputted the correct Canada Post Log In details in the Shipping set up.
  2. I have enabled shipping on the product and added weights & dims.

Just playing around with it, but it doesn’t seem to be working.

https://anagram.trialsite.co/test

It gives me the option in the cart to choose Canada Post, but no other options.

Screenshots of set up:

@vlad.z suggestions?

*** One other thing, I would suggest hiding the password field input (right now you can see the password that is inputted).*

Thanks,
Aaron

Hi @A3CS
Here are requirements for external shipping providers:

Thanks, so sort of got it to work.

Looks like we can’t use spaces in Canadian Postal Codes. V3H 2Y1 should be written as such, not as V3H2Y1. The latter works, so this will be a bit confusing for some people.

So, for me to make this work, looks like I need to set the shipping postal code in settings without a space and for the user, they will need to input without a space. https://prnt.sc/u7jxtu but this is not how it should be written.

When I do it the way it is supposed to be xxx xxx it shows this error:

/rs/ship/price: cvc-simple-type 1: element {http://www.canadapost.ca/ws/ship/rate-v4}origin-postal-code value ‘V3H 2Y1’ is not a valid instance of type {http://www.canadapost.ca/ws/ship/rate-v4}PostalCodeType

Any suggestions here?

Thanks,
Aaron

A quick fix might be to use JS to remove spaces on blur. Not sure if that will work with the existing ecommerce js though… might need to tap into that somehow.

Postal code with spaces would be allowed tomorrow after the final 5.5 release update.
CMS would store Postal Code “As Is” but it will trim spaces from the code value for API requests

Thanks @vlad.z for this.

You could also consider W2C Shipping as an alternative to Canada Post.