We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b769a1d commit 5e402bbCopy full SHA for 5e402bb
1 file changed
src/elements/Order.php
@@ -1999,7 +1999,7 @@ public function getAvailableShippingMethodOptions(): array
1999
2000
// Get all regular methods and add them to the list, for use only when the order is complete.
2001
if ($this->isCompleted) {
2002
- $allShippingMethods = ArrayHelper::index(Plugin::getInstance()->getShippingMethods()->getAllShippingMethods(), 'handle');
+ $allShippingMethods = ArrayHelper::index(Plugin::getInstance()->getShippingMethods()->getAllShippingMethods(), fn(ShippingMethodInterface $sm) => $sm->getHandle());
2003
$methods = ArrayHelper::merge($allShippingMethods, $methods);
2004
}
2005
0 commit comments