Skip to content

Commit

Permalink
ENGCOM-4421: [Backport]Show error message when customer click on Add …
Browse files Browse the repository at this point in the history
…to cart button without selecting atleast one product from recently orderred list #21538

 - Merge Pull Request #21538 from mageprince/magento2:mageprince-2.2-develop-port-21401
 - Merged commits:
   1. d504aa1
  • Loading branch information
magento-engcom-team committed Mar 2, 2019
2 parents 9f04388 + d504aa1 commit 387e925
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/code/Magento/Checkout/Controller/Cart/Addgroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 387e925

Please sign in to comment.