Skip to content

Commit 0df8d31

Browse files
committed
Show error message if no any product slected from recent order group
1 parent 10f900e commit 0df8d31

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/Checkout/Controller/Cart/Addgroup.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ public function execute()
7474
}
7575
}
7676
$this->cart->save();
77+
} else {
78+
$this->messageManager->addErrorMessage(__('Please select atleast one product to add to cart'));
7779
}
7880
return $this->_goBack();
7981
}

0 commit comments

Comments
 (0)