Skip to content

2.0.8

Latest

Choose a tag to compare

@github-actions github-actions released this 28 Jul 12:11
c82e0b2

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)