Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Model/Import/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class Action extends AbstractModel
public const ARG_CUSTOM_CARRIER = 'custom_carrier';
public const ARG_SHIPPING_METHOD = 'shipping_method';
public const ARG_TRACKING_NUMBER = 'tracking_number';
public const ARG_TRACKING_URL = 'tracking_url';
public const ARG_RETURN_TRACKING_NUMBER = 'return_tracking_number';
public const ARG_RETURN_CARRIER = 'return_carrier';
public const ARG_SHIPPING_PRICE = 'shipping_price';
Expand Down
6 changes: 6 additions & 0 deletions Model/Import/Marketplace.php
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,12 @@ private function getAllParams(
}
$params[$arg] = isset($lastTrack) ? $lastTrack->getNumber() : '';
break;
case LengowAction::ARG_TRACKING_URL:
// Set the tracking URL value to send to the marketplace.
// Adapt this line to retrieve the URL from your preferred source,
// e.g. a custom order attribute: $order->getData('tracking_url') ?: ''
$params[$arg] = '';
break;
case LengowAction::ARG_RETURN_TRACKING_NUMBER:
$tracks = $shipment ? $shipment->getAllTracks() : null;
if (!empty($tracks)) {
Expand Down