Skip to content

Commit f1d0410

Browse files
committed
Changed for Parcelshop
1 parent 38ca9ca commit f1d0410

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

classes/DpdLabelGenerator.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ public function generateShipmentInfo($orderId, $parcelCount, $return)
215215

216216
$shipment = [
217217
'orderId' => $orderId,
218-
'smallParcelNumber' => Configuration::get('dpdconnect_spr'),
219218
'sendingDepot' => Configuration::get('dpdconnect_depot'),
220219
'sender' => [
221220
'name1' => Configuration::get('dpdconnect_company'),
@@ -245,19 +244,19 @@ public function generateShipmentInfo($orderId, $parcelCount, $return)
245244
];
246245

247246
if ($this->dpdParcelPredict->checkIfPredictCarrier($orderId) || $this->dpdParcelPredict->checkIfSaturdayCarrier($orderId)) {
248-
$shipment['shipments']['notifications'][] = [
247+
$shipment['notifications'][] = [
249248
'subject' => 'predict',
250-
'channel' => 'email',
249+
'channel' => 'EMAIL',
251250
'value' => $customer->email,
252251
];
253252
}
254253

255254
if ($this->dpdParcelPredict->checkifParcelCarrier($orderId)) {
256255
$parcelShopID = $this->dpdParcelPredict->getParcelShopId($orderId);
257-
$shipment['shipments']['product']['parcelshopId'] = $parcelShopID;
258-
$shipment['shipments']['notifications'][] = [
256+
$shipment['product']['parcelshopId'] = $parcelShopID;
257+
$shipment['notifications'][] = [
259258
'subject' => 'parcelshop',
260-
'channel' => 'email',
259+
'channel' => 'EMAIL',
261260
'value' => $customer->email,
262261
];
263262
}
@@ -327,6 +326,7 @@ public function generateShipmentInfo($orderId, $parcelCount, $return)
327326
'city' => $address->city,
328327
'country' => $country->iso_code,
329328
'commercialAddress' => false,
329+
'sprn' => Configuration::get('dpdconnect_spr'),
330330
];
331331

332332
$shipment['customs']['customsLines'] = $customsLines;

dpdconnect.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,8 @@ public function getContent()
342342
],
343343
[
344344
'type' => 'text',
345-
'label' => $this->l('Small Parcel Reference'),
345+
'label' => $this->l('SPRN'),
346+
'hint' => $this->l('Heeft u een registratienummer van HMRC (douane in UK) beschikbaar, vul deze dan hier in: https://www.gov.uk/guidance/register-for-import-vat-on-parcels-you-sell-to-uk-buyers'),
346347
'name' => 'spr',
347348
'required' => false
348349
],

0 commit comments

Comments
 (0)