Shipping Labels for DHL eCommerce APAC
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:
$getOrderproductmnamewas a redundant secondwc_get_order()call that could returnfalse(bool) when the order ID variable was undefined, causing a fatal error whenget_data()was called on it. - Fix: Removed the redundant
wc_get_order()call entirely. The already-resolved$dhl_orderorder object is now reused directly, which is guaranteed valid by the guard above it. $dhl_order_idhas 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
$getOrderproductmnamevariable, 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
$getOrderproductmnamehave 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_orderinstance. - Reduces database queries per page load on the order edit screen.
- Eliminated all redundant
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 plugins@wordpress.org.
