The Shipping Labels for DHL eCommerce APAC plugin, developed by Algoleap Technologies Pvt Ltd, automates your shipping workflow by connecting your WooCommerce store to DHL eCommerce APAC services — with full support for WooCommerce HPOS and now automatic tracking status updates via Webhooks.
Key Features
- Generate and print shipping labels directly from WooCommerce admin.
- Automatically track shipments and update order status via Webhooks.
- Offer DHL shipping options at checkout.
- Calculate accurate shipping rates based on destination, weight, and dimensions.
- Supports WooCommerce HPOS (High-Performance Order Storage).
- Easy-to-use interface for generating and printing shipping labels.
- Seamless integration with WooCommerce checkout process.
- Detailed documentation and support available.
New in Version 1.1.8
-
Fixed: Fatal Error on Order Edit Screen (Critical Fix)
- Resolved “Call to a member function get_data() on bool” crash occurring on line 108 of the shipping label class.
- Root cause:
$getOrderproductmname was a redundant second wc_get_order() call that could return false (bool) when the order ID variable was undefined, causing a fatal error when get_data() was called on it.
- Fix: Removed the redundant
wc_get_order() call entirely. The already-resolved $dhl_order order object is now reused directly, which is guaranteed valid by the guard above it.
$dhl_order_id has been restored and is always correctly set from $dhl_order->get_id().
- The order guard has been strengthened from a loose truthy check (
!$dhl_order) to a strict type check (!$dhl_order instanceof WC_Order), preventing any non-order value from passing through.
-
Fixed: Fatal Error on Cash on Delivery Field (Critical Fix)
- Resolved “Call to a member function get_total() on null” crash occurring on line 434 of the shipping label class.
- Root cause: The Cash on Delivery input field in the meta box HTML was still referencing the old
$getOrderproductmname variable, which no longer exists after the above fix.
- Fix: Replaced
$getOrderproductmname->get_total() with $dhl_order->get_total(), which is the correct, already-validated order object.
- All remaining references to
$getOrderproductmname have been removed from the file — a full scan confirms zero occurrences remain.
-
Improved: Order Object Handling
- Eliminated all redundant
wc_get_order() calls inside the meta box render function.
- Order data, items, and totals are now all retrieved from a single validated
$dhl_order instance.
- Reduces database queries per page load on the order edit screen.
Configuration
- Enter your DHL eCommerce APAC API credentials.
- Configure your default package dimensions and shipping preferences.
- Enable Webhook tracking updates (enabled automatically).
- Enable debug logging if needed.
Usage
Creating Shipping Labels
- Go to WooCommerce → Orders.
- Open any order and find the “DHL eCommerce APAC” panel.
- Fill in shipping details and click Generate Label.
- Download and print the generated label.
Bulk Label Creation
- Go to WooCommerce → Orders.
- Select multiple orders.
- Choose Create DHL eCommerce APAC Labels from the Bulk Actions dropdown.
Automatic Tracking Updates
- DHL’s ELR system automatically sends tracking updates to your webhook endpoint.
- The WooCommerce order table updates the Tracking Status automatically.
WooCommerce HPOS Compatibility
Fully compatible with WooCommerce High-Performance Order Storage.
Privacy & Logging
Webhook and API logs are stored securely in WooCommerce → Status → Logs (when enabled).
Disclaimer
This plugin is an independent DHL eCommerce APAC integration and is not officially endorsed by DHL.
Support
Contact the WordPress plugin support forum or [email protected].