Magento Tutorials

Magento 2 Shipping Carriers – How to Configure DHL Carrier

Hello Magento Friends,

In this article, we will learn How to Configure DHL Carrier in your Magento 2 Store. 

Best shipping service is the first priority for all e-commerce stores to provide their customers. Therefore when you integrate DHL service into your Magento 2 store you can help your store customers to place orders for anything such as products, goods, letters, etc. We can say that DHL is a flawless resolution for complex shipping requirements.

Are you willing to integrate DHL Carrier in your Magento 2 store? Check out the stuff you will require for connecting your Magento 2 store to the DHL server in the below-given illustration. Instead of configuring the DHL Carrier in your Magento 2 Store integrate the Magento 2 Order Tracking extension and automate your shipping configuration.

Create a DHL merchant account from here.

Steps to Configure DHL Carrier in Magento 2 Store:

Step 1: Apply DHL

Navigate to Stores > Settings > Configuration and explore the sales option and select delivery methods.

Explore the DHL option.

Enabled for Checkout: Set to YES

Title: Add the title for the shipping method to display on the frontend of your Magento 2 store.

Gateway URL: Add the gateway URL for calculating the shipping rate of DHL.

Add the credentials given by DHL in the below-given fields:

  • Access ID
  • Password
  • Account Number

Step 2: Now we will set up the package description and handling fees

Content type: Select anyone for the type of package you ship such as Documents or Non-documents

Calculate Handling Fee: Choose the Handling Fee method as per your convenience from:

  • Fixed
  • Percentage

Handling Applied: Choose the Handling Applied method as per your convenience from:

  • Per Order
  • Per Package

Handling Fee: Add the price to charge your customers on the basis of the Method you have selected to calculate the price.

Divide Order Weight: Set the Divide Order Weight to yes for allowing the total order weight to be broken up to check the precise calculation.

Weight Unit: Select the weight unit as per your requirement from:

  • Pounds
  • Kilograms

Size: Select the size as per your requirement from:

  • Regular
  • Specific

After the selection of the size, you will require to add the Height, Depth, and Width of the package in centimeters.

Step 3: Specify allowed delivery methods

Allowed Methods: Select the methods as per your desire to provide your customers. You can also multi-select using the CTRL-key.

Ready Time: Add the number of hours after the order is placed and the package is ready to ship.

Display Error Message: Add the Displayed Error Message as per your requirement. This error message will be displayed when the selected method is unavailable.

Free Method: Choose the DHL service you need to apply for free shipping

Free Shipping Amount Threshold: Choose the Enable option and add the minimum amount of order to qualify for free shipping.

Step 4: Specify the applicable countries

Ship to Applicable Countries: Select from the below options:

All Allowed Countries: DHL is supported for every country.

Specific Countries: DHL will be supported as per the selection of the countries.

Show Method if Not Applicable: Set to YES for displaying DHL shipping method.

Debug: Set to YES if you need to generate a log file with the details of DHL shipments.

Save the Configuration.

That’s It

Wrap Up:

Hopefully, all are able to Configure DHL Carrier in your Magento 2 stores. In case of any errors you face during configuration ask in the comment section below

Share the solution with your Magento 2 Merchant Friends.

Click to rate this post!
[Total: 38 Average: 1.3]
Gaurav Jain

Gaurav Jain is Co-Founder and Adobe Certified Expert-Magento Commerce Business Practitioner. Being Computer Engineer?‍? and possessing Extensive Marketing skills he handles all kinds of customer Queries and his Happy? & Helping? Nature makes customer's day Delightful. When he isn’t working, you’ll find Gaurav Reading on Books? or Traveling?. Also, he is Speaker at Magento Meetups.

Recent Posts

Improving Error Handling and Transition Management in Remix with useRouteError and useViewTransitionState

In modern web development, seamless navigation and state management are crucial for delivering a smooth…

6 days ago

Magento Open Source 2.4.8-Beta Release Notes

Magento Open Source 2.4.8 beta version released on October  8, 2024. The latest release of…

1 week ago

How to Create Catalog Price Rule in Magento 2 Programmatically?

Hello Magento Friends, Creating catalog price rules programmatically in Magento 2 can be a valuable…

1 week ago

Top 10 Tips to Hire Shopify Developers

As the world of eCommerce continues to thrive, Shopify has become one of the most…

2 weeks ago

Managing Browser Events and Navigation in Shopify Remix: useBeforeUnload, useHref, and useLocation Hooks

Shopify Remix is an innovative framework that provides a streamlined experience for building fast, dynamic,…

2 weeks ago

Ultimate Guide to Hiring a Top Shopify Development Agency

Building a successful eCommerce store requires expertise, and for many businesses, Shopify has become the…

2 weeks ago