Commit c5782803 by lmf

屏蔽增加购物车提示

parent bec62b94
......@@ -65,14 +65,14 @@ class Add extends \Magento\Checkout\Controller\Cart\Add
);
if (!$this->_checkoutSession->getNoCartRedirect(true)) {
if (!$this->cart->getQuote()->getHasError()) {
$message = __(
'You added %1 to your shopping cart.',
$product->getName()
);
$this->_messege = $message;
$this->messageManager->addSuccessMessage($message);
}
// if (!$this->cart->getQuote()->getHasError()) {
// $message = __(
// 'You added %1 to your shopping cart.',
// $product->getName()
// );
// $this->_messege = $message;
// $this->messageManager->addSuccessMessage($message);
// }
$this->_result['html'] = $this->_getHtmlResponeAjaxCart($product);
return $this->goBack(null, $product);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment