We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4acad7 commit d7b6466Copy full SHA for d7b6466
src/Picqer/Carriers/SendCloud/Parcel.php
@@ -45,6 +45,7 @@ class Parcel extends Model
45
'data',
46
'country',
47
'shipment',
48
+ 'reference',
49
'requestShipment',
50
'order_number',
51
'tracking_number',
@@ -69,6 +70,12 @@ class Parcel extends Model
69
70
71
public function getTrackingUrl()
72
{
73
+ // SendCloud now gives us this undocumented field, so if it exists use this
74
+ if ( ! empty($this->tracking_url)) {
75
+ return $this->tracking_url;
76
+ }
77
+
78
+ // Otherwise build url based on old method
79
$shipper = $this->getShipperName();
80
81
switch ($shipper) {
0 commit comments