github dpdconnect/woocommerce-shipping 2.0.8

4 hours ago

Feature: Automatic parcel splitting based on weight

Summary

Adds automatic parcel splitting to the DPD Connect plugin.
Orders are automatically split into multiple parcels when the total weight exceeds a configurable maximum (default: 24 kg per parcel). This works for both bulk label generation and individual orders.

Problem

When generating DPD labels via the bulk action ("Create DPD Business Labels"), only 1 parcel was created per order regardless of total weight.

The DPD API rejects requests when the parcel weight exceeds the maximum limit, resulting in error messages for heavy orders.

Solution

  • New setting "Max Weight Per Parcel (kg)" in DPD → Product attributes
  • After calculating the total weight, the number of parcels is automatically determined: ceil(totalWeight / maxWeight)
  • Weight is distributed evenly across all parcels
  • When the setting is empty or set to 0, behaviour remains unchanged (backwards compatible)

Don't miss a new woocommerce-shipping release

NewReleases is sending notifications on new releases.