Magento 2 Canada Post Shipping

Magento 2 Canada Post Shipping extension integrates Canada Post API with Magento 2 to provide your Canadian customers with most preferred shipping method in Canada.

 

Table of Content

  1. Extension Installation Guide
  2. Shipping Origin Settings
  3. Configuration
  4. Adding Shipping Rates for Products
  5. Canada Post Shipping in Frontend
  6. Canada Post Shipping Details in Sales Order View Backend
  7. Canada Post Shipping for Backend Orders

 

  1. Extension Installation
  • For Magento Marketplace Customers
  • Create a folder structure in Magento root as app/code/Meetanshi/Canadapost
  • Download and extract the zip folder and upload our extension files to the app/code/Meetanshi/Canadapost via FTP.
  • Login to your SSH and run below commands step by step:
  • php bin/magento setup:upgrade
  • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
  • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
  • php bin/magento cache:flush

 

  • For Meetanshi Customers
  • Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
  • Login to your SSH and run below commands step by step:
  • php bin/magento setup:upgrade
  • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
  • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
  • php bin/magento cache:flush

 

  1. Shipping Origin Settings
    Before the extension configuration, go to Stores à Configuration à Sales à Shipping Settings and configure shipping origin settings under the “Origin” option. As the extension works only with the Canada origin, make sure that your country and related settings are from the Canada only.

 
  1. Configuration
    For configuring the extension, login to Magento 2, move to Sales à Shipping Methods à Canada Post Shipping à Meetanshi where you can find various settings to enable the extension.
  • Canada Post Shipping: Enable or disable the extension from here.
  • Title: Input the title for Canada Post Shipping to show on the frontend.
  • Show Estimated Delivery Time: Set “YES” to show estimated delivery time in frontend.
  • Delivery Time Offset: Add days to show estimated delivery date.
  • Sandbox Mode: Set “YES” to enable sandbox mode.
  • Rate Type: Set the rate type.
  • Locale: Select the language preference.
  • API User ID: Enter the API User ID provided by Canada Post while API registration.
  • API Password: Enter the API Password provided by Canada Post while API registration.
  • Client Number: Enter the Client number provided by Canada Post while API registration.
  • Weight: Set the weight unit of your products in order to calculate shipping rates.
  • Default Length: Enter the default length of the package in centimeters to calculate rates.
  • Default Width: Enter the default width of the package in centimeters to calculate rates.
  • Default Height: Enter the default height of the package in centimeters to calculate rates.
  • Handling Fee: Input the handling fees to charge order.
  • Allowed Methods: Select the allowed methods for Canada Post Shipping from the list.
  • Free Shipping with Minimum Order Amount: Enable for Free shipping with minimum order amount.
  • Minimum Order Amount for Free Shipping: Input the minimum amount of order for free shipping.
  • Free Method for Canada: Select the free method for Canada
  • Free Method for US: Select the free method for US.
  • Free Method for International: Select the free method available internationally.
  • Displayed Error Message: Input the error message to display for shipping unavailability.
  • Ship to applicable countries: Select the countries you want to enable Canada Post Shipping for.
  • Show Method if Not Applicable: Set YES to show the shipping method even if it’s not applicable.
  • Sort Order: Add sort order for the display of Shipping Method.
  • Show Method only for Admin: Enable shipping method for admin only.

 

  1. Adding Package Dimensions for Products
    To set the individual package dimensions for each product, go to Catalog à Products and select the product for which you want to set the package dimensions. Edit it and you can find the “Canada Post Dimension” tab to set the package dimensions for the product. Enter height, length and width of the package of the product in centimeters.

 

  1. Canada Post Shipping in Frontend
    Once you have configured the extension successfully, when users add the products to cart, select the destination, all the available Canada post shipping methods get displayed with the shipping rates. The user can choose once of the shipping methods to continue to the checkout.
  • Canada Post Shipping on Cart Page

​​​​​​​

 

  • Canada Post Shipping on Checkout Page

 

  • Canada Post Shipping Details in Customer’s “My Account” Section
    Once the order is placed using Canada Post shipping method, the user can see Canada post shipping details under the “My Orders” tab of customer’s My Account section.

 

  1. Canada Post Shipping Details in Sales Order View Backend
    Apart from the frontend, the admin can see Canada Post shipping details from the Sales > Orders > Order view section in the backend.

​​​​​​​

 

  1. Canada Post Shipping for Backend Orders
    The extension also facilitates to create an order from the backend using Canada post shipping method. Once the admin adds products, selects the address, the available Canada post shipping methods seen enabled to choose one from.