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 authored and FreekVR committed Nov 15, 2024
1 parent 041c879 commit 18d20ca
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 18d20ca

Please sign in to comment.