Magento Integration (Cario Plugin)
The Cario Magento Plugin provides a seamless integration between Magento and Cario, enabling accurate shipping rate calculation, automated consignment creation, and streamlined fulfilment workflows. Correct setup of store configuration, product attributes, and address details is essential to ensure reliable shipping rates and successful consignment creation.
The Cario Magento Plugin integrates your Magento store with Cario to provide live shipping rates at checkout and automatically create consignments once orders are placed.
This integration supports the full fulfilment workflow, from shipping rate calculation through to consignment creation and label printing.
What the Magento Plugin Does
With the Cario Magento Plugin, you can:
- Display live shipping rates from Cario during Magento checkout
- Calculate accurate rates using product weight and dimensions
- Automatically create consignments in Cario from Magento orders
- Print shipping labels directly from the Magento admin
Important
The Cario Magento Plugin is installed as a Magento module and must be deployed directly to your Magento environment.
Installation Overview
The plugin is installed by deploying the Cario module into your Magento codebase and running the required Magento setup commands.
Installation Steps (High-Level)
- Download the Cario Magento module provided by Cario
- Extract the module into the <magento_root>/app/code/ directory
- Open a terminal and navigate to your Magento root directory
- Clear generated files and caches
- Run Magento setup and compilation commands
- Log in to the Magento Admin panel
- Verify that Cario is available as a shipping method
Once installed, the Cario shipping method must be enabled and configured with a valid Cario access token.
Enabling the Cario Shipping Method
After installation, confirm that Cario is enabled.
- Go to Stores
- Click Configuration
- Under Sales, select Shipping Methods
- Locate Cario in the list
- Set Enabled to Yes
- Save the configuration
Configuring the Cario Access Token
To allow Magento to communicate with Cario, you must register your store and access token.
- Open the Cario Magento registration page
- Enter your Store URL
- Enter your Cario Access Token
- Submit the form
This step links your Magento store to your Cario account.
Store Address Configuration
A valid store address is required to calculate shipping rates and create consignments.
Cario supports two address sources, prioritised in the following order.
Shipping Origin (Preferred)
If configured, Shipping Origin is used first.
- Go to Stores
- Click Configuration
- Under Sales, select Shipping Settings
- Enter the origin Country, Postcode, City, and Street Address
Store Information (Fallback)
If Shipping Origin is not set, Store Information will be used.
- Go to Stores
- Click Configuration
- Under General, select General
- Enter the store Name, Country, Postcode, City, and Street Address
Product Attribute Requirements
For shipping rates to calculate correctly, products must include container and dimension data.
This is achieved by creating custom product attributes in Magento.
Required Product Attributes
|
Attribute |
Type |
Required |
|
Container |
Dropdown |
Yes |
|
Length |
Text Field |
Yes |
|
Width |
Text Field |
Yes |
|
Height |
Text Field |
Yes |
|
Weight |
Text Field |
Yes |
The Container attribute must include the following options:
- Carton
- Satchel
Important
Weight must be marked as a required attribute. If weight is missing, shipping rates will not be returned.
Attribute Set Configuration
To simplify product setup, a dedicated attribute set should be created.
- Go to Stores
- Click Attribute Set
- Create a new attribute set named Cario
- Base it on the Default attribute set
- Add the following attributes to the Product Details group:
- Container
- Length
- Width
- Height
These attributes should appear before Weight in the attribute order.
Adding Products
When adding products to Magento, ensure the Cario attribute set is used.
Required Product Fields
- Attribute Set: Cario
- Container: Carton or Satchel
- Length
- Width
- Height
- Weight
All values must be populated for shipping rates to calculate successfully.
Testing Shipping Rates
Once products are configured, you can test shipping rates through the Magento storefront.
Test Flow
- Open your Magento store
- Add products to the cart
- Proceed to checkout
- Enter delivery address details
- Shipping methods will display once Country, City, and Postcode are provided
- Select a shipping method
- Place the order
If configured correctly, shipping rates will be returned from Cario.
Creating Consignments
After an order is placed, consignments can be created directly from the Magento Admin.
Creating a Consignment
- Log in to Magento Admin
- Go to Sales → Orders
- Open the order
- Click Create Consignment from the top menu
The consignment will be created automatically in Cario.
Label Printing
Once a consignment is created:
- A confirmation message will be displayed
- The Connote number will appear under Payment & Shipping
- Clicking the Connote number will prompt the shipping label for printing