Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Ernst committed Mar 4, 2024
1 parent 5c4b050 commit fe9b691
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ public function calculate(): void
}

if (DeliveryOptions::PACKAGE_TYPE_PACKAGE_SMALL_NAME === $deliveryOptions->packageType) {
$this->order->deliveryOptions->shipmentOptions->tracked = TriStateService::ENABLED;
$this->order->deliveryOptions->shipmentOptions->tracked = is_int(
$this->order->deliveryOptions->carrier->subscriptionId
) ? TriStateService::INHERIT : TriStateService::ENABLED;
} else {
$this->order->deliveryOptions->shipmentOptions->tracked = TriStateService::DISABLED;
}
Expand Down

0 comments on commit fe9b691

Please sign in to comment.