From d504aa1ca7f42156d0ca3f08a4f3905b40df8066 Mon Sep 17 00:00:00 2001 From: mageprince Date: Fri, 1 Mar 2019 14:57:52 +0530 Subject: [PATCH] 2.2-develop-backport-21401 --- app/code/Magento/Checkout/Controller/Cart/Addgroup.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/code/Magento/Checkout/Controller/Cart/Addgroup.php b/app/code/Magento/Checkout/Controller/Cart/Addgroup.php index 8654bdbde5893..1876d3ca37d94 100644 --- a/app/code/Magento/Checkout/Controller/Cart/Addgroup.php +++ b/app/code/Magento/Checkout/Controller/Cart/Addgroup.php @@ -41,6 +41,8 @@ public function execute() } } $this->cart->save(); + } else { + $this->messageManager->addErrorMessage(__('Please select at least one product to add to cart')); } return $this->_goBack(); }