DHL shipping¶
Barberklingen.se can create DHL labels the same way Elome does, through the shared barberklingen/package-dao-shipping package (DHL eConnect). DHL is the only label type in the label overlay (offline labels have been removed). The checkout and shipping prices are unchanged.
Turn it on¶
Add the three DHL eConnect values to the site's .env (via the dotenv vault):
DHL_ECONNECT_CLIENT_ID=<client id>
DHL_ECONNECT_SECRET=<client secret>
DHL_CUSTOMER_EKP=<DHL customer identification>
- If any of them is missing, DHL stays off and the overlay has no label type to choose.
- Every environment except
WP_ENV=productionuses the DHL sandbox, so test labels never become real parcels. - The package creates its own tables (
wp_shipping_labelsand friends) through the site migrations. The deploy runs them; locally, run them yourself aftercomposer install:
SETASIGN_TOKEN in the project root .env (see Deployment). The WooCommerce store address (WooCommerce > Settings > General) is used as the sender on the label. Fill in address, postcode, city and country, otherwise DHL uses the address it has on file for the account.
Daily use¶
- Click Generate labels on the orders page or on WooCommerce > Warehouse. DHL is preselected.
- Select the orders and click Generate labels. The orders are queued, marked as printed and completed, and you are sent to WooCommerce > Warehouse.
- When the batch shows Done, click Build bundle and then Download to print.
- Print the Stop note (DHL) from the bottom of the Warehouse page and attach it to the bundle.
On parent orders with a trial kit (prøvepakke), the razor blades are left out of the label bundle and out of the weight and size sent to DHL, because they are not in that parcel. See Shipping/ShippingLabelItems.php.
The package's own guide covers batch statuses, retries and the Warehouse page in detail: docs/how-to-use.md in barberklingen/package-dao-shipping.