Shipping Origin
Overview
The Shipping Origin module allows you to calculate shipping rates based on the address of the inventory source where the product is located. This is in contrast to the default Magento behavior, which calculates shipping rates based on the address of the store.
The Shipping Origin module requires you to have a custom inventory stock and inventory sources instead of the default one. Also, each in-stock product should be assigned only to at least one custom inventory source.
After configuring inventory stocks, sources, and products, there are no additional configuration needs. The module will start to work automatically and calculate shipping rates based on inventory source address.
When you use this module, you must not use the default inventory source or stock. Multi-source inventory uses the default inventory source and stock as a fallback to one-source inventory. If you use the default inventory, the priority for an item with multiple inventory sources will not work correctly.
Features
- Shipping rate based on the inventory source address
- Support of weight-based packages for shipping rate calculations
- Leverages the out of the box inventory source functionality
- Ability to set priority for each inventory source per inventory stock
- Uses the out of the box multiple packages functionalities to create shipping rate requests
Benefits
The Shipping Origin module offers the following benefits:
- More accurate shipping rates: Shipping rates are calculated based on the actual location of the inventory source, which can lead to more accurate shipping rates for your customers.
- Improved customer experience: Customers will appreciate seeing more accurate shipping rates, which can help to improve their overall shopping experience.
- Increased sales: More accurate shipping rates can help to increase sales by making it easier for customers to complete their purchases.
How to use
To use the Shipping Origin module, you will need to:
- Install the module.
- Configure your inventory stocks and sources.
- Assign products to inventory sources.
- There is no additional configuration required.
The Shipping Origin module will start to work automatically and calculate shipping rates based on inventory source address.
Magento Compatibility | 2.3.x, 2.4.x |
---|---|
License | GNU General Public License v3.0 (GPL-3.0) |
Composer Package | thesgroup/module-shipping-origin |
Automatically Add The Repository
Through an SSH connection, all you have to do is run the following command from your Magento installation directory
composer config repositories.www.sashas.org composer https://www.sashas.org
Manually Add The Repository
The typical Magento 2 installation has repositories section of composer.json like this:
{
"repositories": [
{
"type": "composer",
"url": "https://repo.magento.com/"
}
]
}
You will need to add a repository by appending an object to the repositories object
{
"repositories": {
"0": {
"type": "composer",
"url": "https://repo.magento.com/"
},
"www.sashas.org": {
"type": "composer",
"url": "https://www.sashas.org"
}
},
}
How To Install The Module
Once the repository is added to the composer.json file, you can now install the packages that are available through it.
For example, let’s say you want to install the thesgroup/module-shipping-origin module through composer. Run the command below to install it:
composer require thesgroup/module-shipping-origin