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 17, 2024
1 parent e1a6955 commit 09014bf
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 09014bf

Please sign in to comment.