Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
Page 2 of 2
Canada Post
 
notzippy
Member
 
Total Posts:  46
Joined:  2008-07-07
 

TODO list before asking for the module

You need a lot of information from canada post to start though -

1) By calling the Commercial Service Network @1-800-260-7678 (and press 1 then 0) and explain to them that “you are a business and need a Canada Post Customer Number so you can get a ‘sell online account’ “ and they should sign you up

2) Once you get that information then you need a sell online account (oh isnt this efficient !) call 1 866 511-0546 (options 1 - 2 - 2) to create a new account they will ask you for the main contact, company name, postal code, customer number. (The customer number is the CPC number)

3) Then you need to your boxes size and weights to the sellonline.canadapost.ca inventory.

4) Then add 3 attributes to the default attribute set “package_width” “package_height” “package_depth” (required integer must be in centimeters! ) and you must define those for all products you can add to the cart, your weight must be in KG’s for those products also.

If you have made it this far then pm me for the module, I will add it to mage-connect once it has been thoroughly tested and the following bug is resolved (If anyone knows how to get the actual product from a configured one in the cart let me know !) .

Bug : If you are selling a configured product I have not found a way to get the “actual” product so the size attributes are taken from the configured product, this is the same bug reported http://www.magentocommerce.com/boards/viewthread/13936/ and http://www.magentocommerce.com/boards/viewthread/13242/ ..

If you do not define the package dimensions or weight canada post will not provide a quote.

z

 
Magento Community Magento Community
Magento Community
Magento Community
 
XPC Design
Member
 
Avatar
Total Posts:  39
Joined:  2008-08-19
 

Can any of you at least post it to mage connect as alpha or something? I want/need to try it out but it’s hard to get a quick (or any?) response from you guys on the forums.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Tom Gee
Jr. Member
 
Total Posts:  3
Joined:  2008-07-28
Ontario, Canada
 

Phew, it’s been an adventure so far trying to just register with Canada Post.

I called the first 1-800 number given by notzippy, and the agent told me that unless I was shipping large volumes (> 750 packages a month), I should get a “Venture One” account, which can be signed up for online.  (http://canadapost.ca/business/intsol/sb/ventureone/default-e.asp).

But when I clicked “sign me up”, I got simple, almost blank page announcing a 404 error.  Clicking on the “main page” link from that page told me that I needed to “upgrade” to a current version of Internet Explorer or Netscape.

I’m using Firefox 3, one of the most popular browsers in the world!  Grrr.  Calling the agent back and explaining my problem, she gave me the direct number of Venture One customer support (1-877-262-5762).  They’ll take the registration over the phone if you can’t get to the web page.

(That being said, all the online shipping tools they provide have the same browser requirements, which is entirely unjustified.  I downloaded the excellent User Agent Switcher add-on for firefox, told it to pretend to be something called “Netscape 6.2”, and everything works just fine.)

I’m still working on getting the “Sell Online” account (after all, it’s only been 1.5 hours of work so far).  I’ll update you when I make any more progress.

 
Magento Community Magento Community
Magento Community
Magento Community
 
notzippy
Member
 
Total Posts:  46
Joined:  2008-07-07
 

I figured out the configurable products issue, Will upload to magento servers by september 8 2008, module will include the following configuration options:

Show shipment details ? : Displays box size & contents for each item (close to a packing slip)
Gateway Port Canada Post Gateway Port
Gateway URL Canada Post Gateway url
CCP number (Customer Number 1-800-260-7678) Storage only
Sell Online Account number (1-800-260-7678) Storage only
Sell Online Retail ID * (1-800-260-7678) required
Width Attribute Define your own name for these attributes
Length Attribute Define your own name for these attributes
Height Attribute Define your own name for these attributes
Size multiplier, this value is multiplied to each of the sizing attributes Conversion factor to convert size attributes to “cm”
Weight multiplier, this value is multiplied by the inventory item weight Conversion factor to convert weight to “kg”
Admin free shipping (yes/no) Allow the administrator to create an order with free shipping

And the usual extra shipping parameters
Title
Enabled
Calculate Handling Fee
Handling Applied
Handling fee
Displayed Error Message
Ship to applicable countries
Ship to Specific countries

To be concluded…
z

 
Magento Community Magento Community
Magento Community
Magento Community
 
setanta
Member
 
Total Posts:  31
Joined:  2007-11-01
 

Any help in locating a postal solution for Canada would be amazing. UPS xml isn’t working in 1.1.4. so I’m down to table rate shipping ; (

Massive thanks to the brains working on resolving this problem.

 
Magento Community Magento Community
Magento Community
Magento Community
 
notzippy
Member
 
Total Posts:  46
Joined:  2008-07-07
 

Hi

Very busy weekend with too many (magento) software surprises, but the store made it up online (http://www.thedeviantsasylum.com/) with the canada post shipping module. An order was created, packaged and brought to canada post to verify the shipping costs to 5 different provinces and 1 state. The test was successful.

There are some changes (bugs) in the magento core which needed to be fixed to display the shipment “detail”. This detail shows what containers and what items are to be placed in the containers. It is an optional feature so the changes do not have to be made to the core if you do not need to use this feature. In a future release of magento maybe you will not have to do these changes…

SQL Code to execute: This code converts the shipping description attribute and the flat table (sales_flat_quote_address) shipping description field to a TEXT field. The reason for this is that the shipment detail can be longer then the 255 character fields allocated for the shipping description. The reason why this is a bug is because the quote method description, which populates the shipping description, is a text field. By executing this sql you may affect existing shipping statements since the existing shipping statements will be expecting the data to be stored in a “varchar” field and not in the “text” field.

SQL to change the shipping description field to allow for more then 255 chars

UPDATE eav_attribute
set backend_type
='text'
where attribute_code='shipping_description' and entity_type_id=11;
ALTER TABLE `sales_flat_quote_address`
CHANGE `shipping_description`
`
shipping_descriptionTEXT NOT NULL;

In case you run into problems the following sql will revert any changes back to what it currently is

Code to revert back

UPDATE eav_attribute
set backend_type
='varchar'
where attribute_code='shipping_description' and entity_type_id=11;
ALTER TABLE `sales_flat_quote_address`
CHANGE `shipping_description`
`
shipping_descriptionVARCHAR(255NOT NULL;

Changes to magento core
app/code/core/Mage/Sales/Model/Quote/Address/Rate.php Line 62 old:

public function importShippingRate(Mage_Shipping_Model_Rate_Result_Abstract $rate)
    
{
        
if ($rate instanceof Mage_Shipping_Model_Rate_Result_Error{
            $this
                
->setCode($rate->getCarrier().'_error')
                ->
setCarrier($rate->getCarrier())
                ->
setCarrierTitle($rate->getCarrierTitle())
                ->
setErrorMessage($rate->getErrorMessage())
            ;
        
elseif ($rate instanceof Mage_Shipping_Model_Rate_Result_Method{
            $this
                
->setCode($rate->getCarrier().'_'.$rate->getMethod())
                ->
setCarrier($rate->getCarrier())
                ->
setCarrierTitle($rate->getCarrierTitle())
                ->
setMethod($rate->getMethod())
                ->
setMethodDescription($rate->getMethodTitle())
                ->
setPrice($rate->getPrice())
            ;
        
}
        
return $this;
    
}

New

public function importShippingRate(Mage_Shipping_Model_Rate_Result_Abstract $rate)
    
{
        
if ($rate instanceof Mage_Shipping_Model_Rate_Result_Error{
            $this
                
->setCode($rate->getCarrier().'_error')
                ->
setCarrier($rate->getCarrier())
                ->
setCarrierTitle($rate->getCarrierTitle())
                ->
setErrorMessage($rate->getErrorMessage())
            ;
        
elseif ($rate instanceof Mage_Shipping_Model_Rate_Result_Method{
            $this
                
->setCode($rate->getCarrier().'_'.$rate->getMethod())
                ->
setCarrier($rate->getCarrier())
                ->
setCarrierTitle($rate->getCarrierTitle())
                ->
setMethod($rate->getMethod())
                ->
setMethodTitle($rate->getMethodTitle()) // new
                
->setMethodDescription($rate->getMethodDescription()) // changed
                
->setPrice($rate->getPrice())
            ;
        
}
        
return $this;
    
}

Once again the code changes are only necessary if you want to show the shipment details (which items go into which box)

The module will be submitted for admission today (sept 8 2008)

BTW Do you like the product rotation on the front page ? (you may need to wait a bit to see it .. http://www.thedeviantsasylum.com/)

z

 
Magento Community Magento Community
Magento Community
Magento Community
 
bryka
Jr. Member
 
Total Posts:  7
Joined:  2008-07-05
 

Wohoo Cant wait to get it! Your site looks great! Thanks so much for your hardwork on this one.

 
Magento Community Magento Community
Magento Community
Magento Community
 
bryka
Jr. Member
 
Total Posts:  7
Joined:  2008-07-05
 

Still waiting for it to be posted smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
setanta
Member
 
Total Posts:  31
Joined:  2007-11-01
 

Anyone willing to release this as a commercial module, or outline how we can do it ourselves? Excitedly awaiting this since March now

 
Magento Community Magento Community
Magento Community
Magento Community
 
notzippy
Member
 
Total Posts:  46
Joined:  2008-07-07
 

It is finished

http://biz.customgothic.com/canadapost.html

 
Magento Community Magento Community
Magento Community
Magento Community
 
daschenbrener
Jr. Member
 
Total Posts:  7
Joined:  2008-08-04
 

Will this be eventually a part of the Magento Connect ?

Thanks, and great work, I will be purchasing this module right away.

 
Magento Community Magento Community
Magento Community
Magento Community
 
notzippy
Member
 
Total Posts:  46
Joined:  2008-07-07
 

It is listed on Magento Connect now.

http://www.magentocommerce.com/extension/525/canada-post-shipping

 
Magento Community Magento Community
Magento Community
Magento Community
 
unlocklink.com
Jr. Member
 
Total Posts:  6
Joined:  2008-08-15
 

so wait, I cant use the instructions you posted before to use canadapost?! I have to pay for the module first?!

 
Magento Community Magento Community
Magento Community
Magento Community
 
LesF
Jr. Member
 
Avatar
Total Posts:  5
Joined:  2008-10-01
 
notzippy - 22 September 2008 06:20 AM

It is listed on Magento Connect now.

http://www.magentocommerce.com/extension/525/canada-post-shipping

Any other comments from users on this Module?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 2 of 2
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
52170 users|962 users currently online|105391 forum posts