Closed ngolatka closed 5 years ago
This is a known issue in module version 0.10.1. It will be fixed in future versions (more precisely in the lib-shipping-mx which is used by the DHL Shipping module).
If you can't wait for the next release, apply the following fix manually:
public function getCity()
{
return $this->zip;
}
The mistake is rather obvious. Correct it like this:
public function getCity()
{
return $this->city;
}
This should be fixed by today's 0.10.2 release which includes a new version of the lib-shipping-mx: https://github.com/netresearch/dhl-lib-shipping-mx/releases/tag/0.11.1
Bug description When editing the shipping address for a shipment to a DHL Postfiliale (German post office), the receiver's ZIP code ends up in the wrong request field. It is copied to the receiver city field, which overwrites the city name.
The DHL Versenden API throws this error as a result:
Steps to reproduce
This problem only occurs when shipping to a DHL Postfiliale. It does not occur for DHL Packstations, Paketshops, or regular postal addresses.
Expected behavior The ZIP code and city name should not get mixed up when editing the shipping address.
Environment