Quantcast
Channel: Webkul Blog
Viewing all articles
Browse latest Browse all 5489

Magento 2 Canada Post Shipping

$
0
0

The Magento 2 Canada Post Shipping extension will allow the admin to provide Canada Post shipping method for shipping the products. The customers will be able to choose this shipping method at the time of checkout for receiving their products via Canada Post Shipping. This shipping method can be used to receive the shipments within Canada and from Canada to other countries as well.

**Notes:

  1. The estimated delivery time shows for Canada, US, and some other International addresses.
  2. The shipping rates are based according to the delivery details and product weight.
  3. If the weight of the product is zero, this shipping method will not work.
  4. An active Business Purpose Canada Post account is required for getting the API credentials.

Features

  • Admin can enable or disable Canada Post Shipping method.
  • Admin can set the Canada Post shipping method name that will be shown from the front side.
  • Admin can set packages request type.
  • The origin for Canada Shipping Method must be always Canada.
  • Ability to download Invoice and Shipping Slip easily.
  • Provide accurate Canada Post shipping rates to customers for shipping.
  • Multiple selections of Canada Post shipping methods displayed on the checkout page.
  • This module can be used to ship the products from Canada to Canada, Canada to other countries.

Installation

Customers will get a zip folder and they have to extract the contents of this zip folder on their system. The extracted folder has an src folder, inside the src folder you have the app folder. You need to transfer this app folder into the Magento2 root directory on the server as shown below.

Magento2-Canada-Post-Shipping-Move-App-Folder

After the successful installation, you have to run these commands in the Magento2 root directory:

First command – php bin/magento setup:upgrade
Magento2-Canada-Post-Shipping-Command1

Second Command – php bin/magento setup:di:compile
Magento2-Canada-Post-Shipping-Command2

Third Command – php bin/magento setup:static-content:deploy
Magento2-Canada-Post-Shipping-Command3

After running the commands, you have to flush the cache from Magento admin panel by navigating through->System->Cache management as shown below.

Flush-Cache

Configuration For Multi-Lingual Support

For the multilingual support, the admin will navigate through Store->Configuration->General ->Locale Options and select the locale as German (the language into which admin want to translate his store content).
Multi-Lingual-Support

Language Translation

If you need to do the module translation, please navigate the following path in your system. app/code/Webkul/CanadapostShipping/i18n. Open the file named en_US.CSV for editing as shown in below screenshot.

language-Translation-Magento2-Canada-Post-Shipping

Once you have opened the file for editing. Replace the words after the comma(,) on the right with your translated words.

language-Translation-Magento2-Canada-Post-Shipping

After editing the CSV file, save it and then upload it to the same folder. Now your module translation is complete.

language-Translation-Magento2-Canada-Post-Shipping

Admin Configuration

After the successful installation of the Magento2 Canada Post Shipping module, you will be able to see the configuration panel under Stores>Configuration>Sales>Shipping Methods>Canada Post Shipping.
Admin-Configuration

To generate the API User Id, Password and Client Id click the link give below https://www.canadapost.ca/cpotools/apps/drc/home?execution=e1s1

For proper working of Magento2 Canada Post Shipping, you just need to set Canada shipping origin address from the path Stores> Configuration > Sales > Shipping Settings > Origin. Here admin can enter origin address for Canada shipping.
Canada-post-Shipping

**Note: You need to set up the allowed currency under Stores->General->Currency Setup. Here you will have to select the Canadian Dollar under the Allowed Currencies as per the screenshot below.

Magento2 Marketplace Canada Post Shipping Management

Also you will have to import the currency rates under Stores-> Currency-> Currency Rates as per the below screenshot.

Magento2 Marketplace Canada Post Shipping Management

How to get Canada Post Credentials

Before doing the module configuration, the admin needs to have the Canada Post credentials. The admin needs API Key, API Password, Customer Number, and Contract Id (if any).  Please Note: – You need Business Purpose Canada Post account to get these credentials.

Create Account:

First, click here to visit the Canada Post homepage. The following page will appear, click Sign In and then click Sign Up to create a new account.

canada post homepage

After clicking the Sign Up, the following page will appear. Fill in the information as required. Please make sure to select Yes for Is this account for business purposes?

profile information

Now, Choose Profile Type as Small Business, and click Select and continue button.

profile type

In this step, enter your contact information- business address, phone, first & last name, job title etc. After filling in all the necessary information click Continue.

contact information

After providing the contact information, now you will get your Canada Post Customer Number. Please save this as it will be required for Opencart module configuration.

customer number created

Now, you will arrive at the dashboard page after clicking continue in the previous step. Navigate to Business Solutions>Developer Program.

dashboard

The following page will appear after clicking the Developer Program. Click Join Now for creating API Key and Password.

developer program

A pop-up window will appear about the Canada Post Developer Program Agreement. After reading the document, please click Agree and Continue.

agree and continue

Finally, you can now have your API Key and API Password. There will be two types of credentials, one for the Development (Test/ Sandbox Mode) and other for Production (Live).

api credentials

Customer Frontend View

When a buyer will place an order of admin’s product, the buyer can see the Magento2 Canada Post Shipping method at the shopping cart page where the buyer can select the shipping method.
Shopping-Cart-Page
The buyer can also see the selected method under the Order Review section.
Order-Review-Page
**Note: In Magento2 Canada Post Shipping module, the Shipping rate will be calculated according to the Admin’s Origin Zip Code, Product Weight, and the Buyer’s Destination Zip Code.

Now, after placing the order the customer can find the order details under the “My Orders” section. The customers can see the details of the selected shipping method with the estimated delivery time(If the admin has set to show the estimated delivery time).
My-Orders

Admin Management

Now the admin can view the order details under Sales-> Order and here the admin can generate invoices for the ordered products, generate shipment for the order of the products. Even the admin can notify the customers by sending them emails, cancel/hold the order and even edit/reorder the product order.

Order-Information

After viewing the order, the admin will create the invoice for the order. The invoice will contain all the shipping information and cost of shipping for that particular order.
Admin-Invoice
After creating the Invoice, the admin will create the shipping for the order by clicking the Ship option. Here, the admin can generate the shipment by checking the “Create Shipment” option and then clicking the “Submit Shipment” button.
Create-Shipment

Clicking the Submit Shipment button brings a section to create packages. Click the “Add Products To Package” button to add products to the package.

Add-Products

After clicking “Add Products to Package“, you have to check(select) the products to add to package and then click the “Add Selected Products’ to Package” button to add the products.

Add-Selected

After adding the products to package, just click the Save button to save the configuration as shown below in the snapshot.
Save-Products-Package

Now, the admin can generate the shipment label by navigating to the shipments section for the order and clicking the “View” link.
Print-Option

Here, the admin will click on the “Print Shipping Label” to print the shipping label as shown below.
Print-Shipping-Label

Shipping labels

1. Canada to Canada Shipping label
Canada-To-Canada
2. Canada to US Shipping Label
Canada-To-US

That’s all for the Magento 2 Canada Post Shipping extension. Still, have any query or doubts regarding the extension just get back to us with your views at webkul.uvdesk.com


Viewing all articles
Browse latest Browse all 5489

Trending Articles