Commit c5782803 by lmf

屏蔽增加购物车提示

parent bec62b94
...@@ -65,14 +65,14 @@ class Add extends \Magento\Checkout\Controller\Cart\Add ...@@ -65,14 +65,14 @@ class Add extends \Magento\Checkout\Controller\Cart\Add
); );
if (!$this->_checkoutSession->getNoCartRedirect(true)) { if (!$this->_checkoutSession->getNoCartRedirect(true)) {
if (!$this->cart->getQuote()->getHasError()) { // if (!$this->cart->getQuote()->getHasError()) {
$message = __( // $message = __(
'You added %1 to your shopping cart.', // 'You added %1 to your shopping cart.',
$product->getName() // $product->getName()
); // );
$this->_messege = $message; // $this->_messege = $message;
$this->messageManager->addSuccessMessage($message); // $this->messageManager->addSuccessMessage($message);
} // }
$this->_result['html'] = $this->_getHtmlResponeAjaxCart($product); $this->_result['html'] = $this->_getHtmlResponeAjaxCart($product);
return $this->goBack(null, $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