diff --git a/includes/frontend/class-wcmp-checkout.php b/includes/frontend/class-wcmp-checkout.php index 40edc0642..561f4da08 100644 --- a/includes/frontend/class-wcmp-checkout.php +++ b/includes/frontend/class-wcmp-checkout.php @@ -581,7 +581,10 @@ private function getShippingMethodsAllowingDeliveryOptions(): array return $allowedMethods; } - $shippingMethodsForPackage = $shippingMethodsByPackageType[AbstractConsignment::PACKAGE_TYPE_PACKAGE_NAME]; + $shippingMethodsForPackage = array_merge( + $shippingMethodsByPackageType[AbstractConsignment::PACKAGE_TYPE_PACKAGE_NAME] ?? [], + $shippingMethodsByPackageType[AbstractConsignment::PACKAGE_TYPE_PACKAGE_SMALL_NAME] ?? [] + ); foreach ($shippingMethodsForPackage as $shippingMethod) { [$methodId] = self::splitShippingMethodString($shippingMethod);