How to Configure DHL Carrier in Magento 2


Integrating DHL Shipping Methods into your Magento 2 store, your customers are allowed to ask for anything to ship, for example, goods, letters, even and information. The DHL is the perfect solution to focus customer’s demands by now.

Thus, what credentials you need to connect your Magento 2 store to the DHL serve. Let check it out in this post. Moreover, we will also guide you in detail about other methods in the topics including UPS, USPS, and FedEx.

Configure DHL Carrier

  • Step 1: Apply DHL
  • Step 2: Setup the Packaging Description and Handling Fees
  • Step 3: Assign Allowed Methods
  • Step 4: Assign Applicable Countries

Step 1: Apply DHL

  • On the Admin Panel, Stores > Settings > Configurations.
  • On the left panel, under Sales, select Shipping Methods.
  • Open the DHL section,
    • Accept to enable DHL method by choosing Yes in the Enabled for Checkout field.
    • Enter the Title for the name of the shipping method that is shown during the checkout process.
    • Enter Gateway URL to calculate the DHL shipping rate. The default is ready to use, and don’t need to change.
    • Complete UPS XML account information: Access ID, Password, and Account Number.

How to Configure DHL Carrier DHL Account Settings

Step 2: Setup the Packaging Description and Handling Fees

  • From the Content Type list, choose one for the type of package you ship: “Documents” or “Non documents”.
  • Set the Handling Fee as the following (optional)
    • Set Calculate Handling Fee to “Fixed” or “Percent”.
    • In the Handling Applied field, allow specifying how to calculate the handling fee.
    • Insert the amount of Handling Fee.
    • In the Divide Order Weight fiel, choose “Yes” if you allow the total order weight to be broken up to ensure an accurate calculation of shipping charges.
    • Assign the Weight Unit to the unit of measurement as you need: “Pounds” or “Kilograms”.
    • Determine the Size of the typical package: “Regular” or “Specific”.

    If you want to set a specific size, select Specific, then enter the Height, Depth, and Width of the package in centimeters.

How to Configure DHL Carrier DHL Package Settings

Step 3: Assign Allowed Methods

  • Choose FedEx method offered to your customers from the Allowed Method list.
  • Set the Ready Time to ship the order after submission.
  • Enter a error message in the Displayed Error Message box that will appear if UPS Shipping is not available.
  • In the Free Method field, select the USPS service you want to apply free shipping for.
  • In the Free Shipping Amount Threshold field, select “Enable” to set the minimum number of the quantities for free USPS shipping in the next field.

How to Configure DHL Carrier DHL Allowed Methods

Step 4: Assign Applicable Countries

  • Set Ship to Applicable Countries to one of two options:
    • All Allowed Countries : USPS Shipping is supported for every country.
    • Specific Countries: USPS Shipping is only supported for selected countries.
  • Set Show Method if Not Applicable to Yes if you want to show UPS Shipping all time.
  • To create a log file with the details of USPS shipments, set Debug to “Yes”.
  • Set the Sort Order on the Shipping Method on the checkout page.
  • Save Config to finish.

How to Configure DHL Carrier DHL Applicable Countries

Ref: Magento 2 User Guide

It comes to the end of tutorial: How to Configure DHL Carrier in Magento 2.

Please leave comments if you have any questions, feedbacks.

Comments for How to Configure DHL Carrier in Magento 2

You also may like these Magento 2 Extensions

One Step Checkout

13 reviews

Layered Navigation

5 reviews


5 reviews


7 reviews


10 reviews

Zoho CRM

no review

Store Locator

no review

Shop By Brand

no review