diff --git a/src/services/ShippingMethods.php b/src/services/ShippingMethods.php index 397ca760ff..e69fe885dd 100644 --- a/src/services/ShippingMethods.php +++ b/src/services/ShippingMethods.php @@ -125,12 +125,10 @@ public function getMatchingShippingMethods(Order $order): array /** @var ShippingMethod $method */ foreach ($event->shippingMethods as $method) { - $totalPrice = $method->getPriceForOrder($order); - if ($method->getIsEnabled() && $method->matchOrder($order)) { $matchingMethods[$method->getHandle()] = [ 'method' => $method, - 'price' => $totalPrice, // Store the price so we can sort on it before returning + 'price' => $method->getPriceForOrder($order), // Store the price so we can sort on it before returning ]; } }