Create as many carrier as you need in Magento 2.
Each carrier can be configured with Advanced Shipping syntax.

How to install the extension?

  • Backup your store database and web directory
  • Install the last version of Advanced Shipping for Magento 2
  • If you have installed a previous version of the extension using composer, it can have broken Magento Extension Manager. Open a terminal and move to Magento root directory, then run these commands:
# Uninstall modulephp bin/magento module:uninstall Owebia_AdvShipUnlimitedCarriersAddon# Ensure dependency is removed from composer.jsoncomposer remove owebia/magento2-module-adv-ship-unlimited-carriers-addon# Remove custom repositorycomposer config --unset repositories.owebia-magento2-module-adv-ship-unlimited-carriers-addon# Apply modificationscomposer update
  • Open a terminal and move to Magento root directory, then run these commands:
# You must be in Magento root directorymkdir -p ./app/code/Owebia/CustomCarrierscomposer config repositories.owebia composer https://repo.owebia.com/# Use your composer login and password available in your customer account on Owebia Storecomposer require owebia/magento2-module-adv-ship-unlimited-carriers-addon:^6.1.4# Clean cache, enable modules, upgrade setupphp bin/magento cache:cleanphp bin/magento module:enable \    Owebia_SharedPhpConfig \    Owebia_AdvancedShipping \    Owebia_SharedLicense \    Owebia_AdvShipUnlimitedCarriersAddon \    Owebia_CustomCarriersphp bin/magento setup:upgradephp bin/magento setup:di:compile# The owner of these files must be the web server user (can be www-data or apache)sudo chmod u+w,g+w ./app/code/Owebia/CustomCarriers/etc/config.xmlsudo chmod u+w,g+w ./app/code/Owebia/CustomCarriers/etc/adminhtml/system.xmlsudo chmod -R u+w,g+w ./app/code/Owebia/CustomCarriers/Model# Only if the store is in production mode# Deploy static content for each used locale (here for en_US locale only)php bin/magento setup:static-content:deploy en_US
  • If you are logged to Magento backend, logout from Magento backend and login again

Usage

In the backoffice, click on the menu Owebia > Unlimited Carriers
Check that your license is valid.

Then click on the menu Owebia > Unlimited Carriers
You can now create, edit and delete carriers.

Known issues and solutions

If your custom carriers are lost when deploying a new version of your store, you might consider adding the following directives to the root composer.json file:

    "extra": {        "magento-force": "override",        "magento-deploy-ignore": {            "*": [                "/app/code/Owebia/CustomCarriers/etc/config.xml",                "/app/code/Owebia/CustomCarriers/etc/adminhtml/system.xml",                "/app/code/Owebia/CustomCarriers/Model"            ]        }    }