Resources
Originally created by gregmac, this module has been updated and is now maintained by TR.
Module that interfaces with Canada Post's "SellOnline" service (http://sellonline.canadapost.ca) to obtain shipping quotes. Works for both domestic and international shipments.
Module description from gregmac:
Right now, for simplicity, I am totally ignoring product dimensions. It sends the quote with dimensions 1x1x1cm and marked as "ready to ship" so Canada Post does not attempt to pack it into boxes for you. The shipping price is based entirely on weight. In my very limited testing so far this seems to work fine, but I'd love some feedback.
I chose to leave dimensions out of the picture for a number of reasons - mostly that it is incredibly complex. It is a lot of extra work when adding products to the store. There are no dimensions fields for a product, so they would have to be supplied by this module (much like the UPS module does), which is redundant and makes it even more tedious for the store admin. Canada Post will do the "box packing" for you (based on predefined box sizes you set up on your SellOnline account) -- which is fine unless you're a small business (like the one I'm writing this for) that just ships with whatever boxes happen to be available.
The implication of this is that for large but light objects, you'll have to enter the weight a bit higher than usual. There is a calculation the shipping companies do to calculate what they call "dimensional weight" - if it's higher than the real weight, they base the price on that instead (to simplify it).
It also means that prices for multi-box shipments will be off - perhaps this can be handled by splitting up shipments into separate "boxes" for every x kg.
----------------------------------------
This module has been updated by TR to version 0.2 to include splitting boxes for every x kg. View the details in his comment below.
----------------------------------------
Version 0.3 implements the missing "Markup" functionality on the admin page. Now you can apply a rate markup to the Canada Post rates before presenting the quote to your customer.
Version 0.4 adds minor fixes:
- An updated Canada Post services list (see comment #62)
- A new theme function theme_uc_canadapost_option_label() for displaying the quote line items on the checkout page
- A .pot file to facilitate translations
- Integration with the I18N module, to request French language quotes from Canada Post when I18N is set to 'fr' (see comment #63)
- Use of format_plural where needed
Development
| Preview | Attachment | Size |
|---|---|---|
| uc_canadapost-5.x-0.4.tar.gz | 10.36 KB |





When I entered a postal code of 999 (remember, there was no place to enter the country on the shipping estimation form, only a postal code), I saw in the logs:
Products have dimension fields, and have had them since alpha7e at least. They are available to the shipping method via node_load().