Skip to content

Commit 5e402bb

Browse files
committed
Extra shipping method handle fix
1 parent b769a1d commit 5e402bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/elements/Order.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1999,7 +1999,7 @@ public function getAvailableShippingMethodOptions(): array
19991999

20002000
// Get all regular methods and add them to the list, for use only when the order is complete.
20012001
if ($this->isCompleted) {
2002-
$allShippingMethods = ArrayHelper::index(Plugin::getInstance()->getShippingMethods()->getAllShippingMethods(), 'handle');
2002+
$allShippingMethods = ArrayHelper::index(Plugin::getInstance()->getShippingMethods()->getAllShippingMethods(), fn(ShippingMethodInterface $sm) => $sm->getHandle());
20032003
$methods = ArrayHelper::merge($allShippingMethods, $methods);
20042004
}
20052005

0 commit comments

Comments
 (0)