Would you like to update your old Magento 2 DHL Shipping extension (https://github.com/netresearch/dhl-module-shipping-m2) but are unsure how to proceed? This step-by-step guide should help you move to the latest version of the DHL Shipping extension, now called Post & DHL Shipping Extension for Magento 2. Follow these steps:
- Back up your system (source code and database) or perform these steps in a staging environment. Proceed at your own risk..
- Finish all work with the old extension first, for example by generating any outstanding shipping labels.
- Remove the old extension from your system:
composer remove dhl/module-shipping-m2 - Clean up the database:
12345678910DROP TABLE `dhlshipping_quote_address`, `dhlshipping_order_address`;DROP TABLE `dhlshipping_quote_address_service_selection`, `dhlshipping_order_address_service_selection`;DELETE FROM `eav_attribute` WHERE `attribute_code` IN ('dhl_dangerous_goods_category', 'dhl_tariff_number', 'dhl_export_description');ALTER TABLE `quote` DROP COLUMN `dhl_service_charge`, DROP COLUMN `base_dhl_service_charge`;ALTER TABLE `quote_address` DROP COLUMN `dhl_service_charge`, DROP COLUMN `base_dhl_service_charge`;ALTER TABLE `sales_order` DROP COLUMN `dhl_service_charge`, DROP COLUMN `base_dhl_service_charge`;ALTER TABLE `sales_invoice` DROP COLUMN `dhl_service_charge`, DROP COLUMN `base_dhl_service_charge`;ALTER TABLE `sales_creditmemo` DROP COLUMN `dhl_service_charge`, DROP COLUMN `base_dhl_service_charge`;DELETE FROM `core_config_data` WHERE `path` LIKE 'carriers/dhlshipping/%';DELETE FROM `setup_module` WHERE `module` = 'Dhl_Shipping'; - Install the new DHL extension in your Magento 2 store:
composer require dhl/shipping-m2 - Optionally, you can also DHL Paket Shipping Carrier Update Extension installieren.
- After configuring the newly installed Post & DHL Shipping extension, it should be ready for use.
Viel Erfolg!
Updating the DHL Shipping extension
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.