Skip to content

Commit

Permalink
fix: fix small parcel not showing in DO
Browse files Browse the repository at this point in the history
  • Loading branch information
GravendeelJochem committed Sep 20, 2024
1 parent 3a38c7b commit e2877a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion includes/frontend/class-wcmp-checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e2877a2

Please sign in to comment.