thelia / canada-post-module
Installs: 31
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 7
Forks: 0
Open Issues: 0
Type:thelia-module
Requires
- thelia/installer: ~1.1
This package is auto-updated.
Last update: 2024-10-14 22:28:01 UTC
README
Delivery module for Canada Post
The module is compatible with Thelia 2.1 and greater. You can use this module if you shipped your parcel from Canada.
You should have an account on Canada Post and register to the Developper Program to get your API keys.
For now, the module is not fully complete and only the Rating web service is integrated. It allows you to display a list of possible Canada Post service that a customer can select if the destination is available. The shipping costs is automatically retrieve from the Canada Post API.
Installation
Manually
- Copy the module into
<thelia_root>/local/modules/
directory and be sure that the name of the module is CanadaPost. - Activate it in your thelia administration panel
Composer
Add it in your main thelia composer.json file
composer require thelia/canada-post-module:~1.0
Configuration
You need to configure the module. There is a dedicated page for the configuration that you can display from the main modules page in the back office.
You should register on the Canada Post website to get your credentials to access the Canada Post API : https://sso.epost.ca/sso/pfe/ui/registration
Once you have received yous parameters, you can fill up the configuration form. A form is available to test your configuration.
You should also configure the shipping zones that the module could handled. The link to this page is also on the modules page.
Finally, you have to get the list of the services available from Canada Post and select which one is available on your website. The page is accessible from the configuration page of the module. On the configuration page of the services, you have to first get the list of services from Canada Post. A button at the top right of the page will import this list. Once the list is imported, you can customize the title of the service and select if it will be available for the customer with the visible attribute.
Loop
canada-post-rate
This loop is used to get a list of all available services and rates for a specific destination.
Input arguments
Output arguments
canada-post-service
This loop is used to get a list of all available services. It doesn't directly talk to the Canada Post web service but use the list imported in the back office.
Input arguments
Output arguments
canada-post-order
This loop is used to get the detail of the service used for an order.