The situation is awful, DHL and its partner netresearch are neither developing transparently, nor were they able to ship a magento2 extension that is beyond a beta state since more than ... a long time.
What we fixed here:
- hard-coded kg instead of lbs and cm instead of inch as weight/dimensions in label creation.
- removed the COD payment modification - we do not use COD and the code messed up payment method for international orders.
- includes php7.1 compatibility/config via https://github.com/gewaechshaus/dhl-module-shipping-m2/commit/60125ac3681df4cbc656a849f8c5c0186f7b1f31 .
The DHL Shipping extension for Magento® 2 integrates the DHL business customer shipping API into the order processing workflow.
- version: 0.6.0
This extension enables merchants to request shipping labels for incoming orders via the DHL business customer shipping API (DHL Geschäftskundenversand-API).
- PHP >= 5.6.5
- PHP >= 7.0.6
- Magento >= 2.1.4
The DHL Shipping module for Magento® 2 is distributed in three formats:
- Drop-In
- Composer Artifact
- Composer VCS
The following sections describe how to install the module source files, depending on the distribution format, to your Magento® 2 instance.
If you received a single ZIP file with no composer.json
file included, extract
its contents to the project root directory. The module sources should then be
available in the following sub-directory:
app
└── code
└── Dhl
└── Shipping
If you received multiple ZIP files with composer.json
files included, move
them to a common directory on the server. The directory
/var/www/share/marketplace/dhl
is used in the following examples. Please
replace this path with the actual artifact directory of choice.
/var
└── www
└── share
└── marketplace
└── dhl
├── Dhl_Shipping_Lib-0.6.0.zip
└── Dhl_Shipping_Module_M2-0.6.0.zip
Then navigate to the project root directory and run the following commands:
composer config repositories.dhl-shipping-m2 artifact /var/www/share/marketplace/dhl/
composer require dhl/module-shipping-m2:0.6.0
If you prefer to install the module using git, run the following commands in your project root directory:
composer config repositories.dhl-module-shipping-m2 vcs https://github.com/netresearch/dhl-module-shipping-m2.git
composer config repositories.dhl-lib-shipping vcs https://github.com/netresearch/dhl-lib-shipping-mx.git
composer require dhl/module-shipping-m2:0.6.0
Once the source files are available, make them known to the application:
./bin/magento module:enable Dhl_Shipping
./bin/magento setup:upgrade
Last but not least, flush cache and compile.
./bin/magento cache:flush
./bin/magento setup:di:compile
The following sections describe how to uninstall the module, depending on the distribution format, from your Magento® 2 instance.
To unregister the shipping module from the application, run the following command:
./bin/magento module:uninstall --remove-data Dhl_Shipping
This will automatically remove source files and clean up the database.
To uninstall the module manually, run the following commands in your project root directory:
./bin/magento module:disable Dhl_Shipping
rm -r app/code/Dhl/Shipping
To clean up the database, run the following commands:
DROP TABLE `dhlshipping_quote_address`;
DROP TABLE `dhlshipping_order_address`;
DELETE FROM `core_config_data` WHERE `path` LIKE 'carriers/dhlshipping/%';
DELETE FROM `setup_module` WHERE `module` = 'Dhl_Shipping';
The original authors can only give limited support for their original beta version at their Support Portal (FAQ). But right here and now you are looking at a fork of the original release.
Btw, if the issue could not be resolved before the year 2062, you would contact their support team via the Support Portal or by sending an email to [email protected].
That said, we cannot give you support either, but feel free to get in contact to improve the situation.
Original developers (pre-fork)
- Christoph Aßmann | Netresearch GmbH & Co. KG | @mam08ixo
- Sebastian Ertner | Netresearch GmbH & Co. KG
- Benjamin Heuer | Netresearch GmbH & Co. KG
- Paul Siedler | Netresearch GmbH & Co. KG
OSL - Open Software Licence 3.0
(c) 2017 DHL Paket GmbH