We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cc93a0 commit a47f0a1Copy full SHA for a47f0a1
app/code/Magento/Sales/Model/Order.php
@@ -887,12 +887,11 @@ public function canShip()
887
private function checkItemShipping(): bool
888
{
889
foreach ($this->getAllItems() as $item) {
890
- if (!$item->getParentItem()) {
891
- $qtyToShip = $item->getQtyToShip();
+ $qtyToShip = !$item->getParentItem() || $item->getParentItem()->getProductType() !== Type::TYPE_BUNDLE ?
+ $item->getQtyToShip() : $item->getSimpleQtyToShip();
892
893
- if ($qtyToShip > 0 && !$item->getIsVirtual() && !$item->getLockedDoShip()) {
894
- return true;
895
- }
+ if ($qtyToShip > 0 && !$item->getIsVirtual() && !$item->getLockedDoShip()) {
+ return true;
896
}
897
898
0 commit comments