There is a significant regression regarding the shipping process for Klarna orders. In previous versions of the Mollie module, the Tracking URL, Tracking Number, and Carrier Name were automatically pre-filled in the shipment form within the Order Details page.
In the current version (v6.4.0+), this automation no longer works. The fields remain empty, forcing warehouse staff to manually input tracking data for every single order.
It appears that the logic responsible for fetching and returning tracking data is either no longer being triggered or has been disconnected from the shipment form's UI components in the Back Office.
Here is the code that returned tracking data for MyParcel. In newer versions, it is no longer used (IMO) in a way that allows it to appear in the Ship All form:
|
if (Config::MOLLIE_CARRIER_MODULE === $carrierInformation->url_source) { |
|
$carrier = new Carrier($order->id_carrier); |
|
|
|
if (in_array($carrier->external_module_name, ['postnl', 'myparcel'])) { |
|
$table = 'postnl' === $carrier->external_module_name ? 'postnlmod_order' : 'myparcel_order'; |
|
|
|
try { |
|
$info = $this->orderShipmentRepository->getShipmentInformation($table, $order->id); |
|
|
|
if ($info['tracktrace'] && $info['postcode']) { |
|
$postcode = Tools::strtoupper(str_replace(' ', '', $info['postcode'])); |
|
$langIso = Tools::strtoupper(Language::getIsoById($langId)); |
|
$countryIso = Tools::strtoupper(Country::getIsoById($deliveryAddress->id_country)); |
|
|
|
$tracktrace = $info['tracktrace']; |
|
|
|
return [ |
|
'tracking' => [ |
|
'carrier' => 'PostNL', |
|
'code' => $info['tracktrace'], |
|
'url' => "http://postnl.nl/tracktrace/?L={$langIso}&B={$tracktrace}&P={$postcode}&D={$countryIso}&T=C", |
|
], |
|
]; |
|
} |
|
} catch (PrestaShopDatabaseException $e) { |
|
$errorHandler = ErrorHandler::getInstance(); |
|
$errorHandler->handle($e, $e->getCode(), false); |
|
|
|
return []; |
|
} |
|
} |
|
|
|
return []; |
|
} |
There is a significant regression regarding the shipping process for Klarna orders. In previous versions of the Mollie module, the Tracking URL, Tracking Number, and Carrier Name were automatically pre-filled in the shipment form within the Order Details page.
In the current version (v6.4.0+), this automation no longer works. The fields remain empty, forcing warehouse staff to manually input tracking data for every single order.
It appears that the logic responsible for fetching and returning tracking data is either no longer being triggered or has been disconnected from the shipment form's UI components in the Back Office.
Here is the code that returned tracking data for MyParcel. In newer versions, it is no longer used (IMO) in a way that allows it to appear in the
Ship Allform:PrestaShop/src/Service/ShipmentService.php
Lines 99 to 132 in c3adcad