19 $this->_objectManager->create(\
Magento\ProductAlert\Model\Price::class)
21 $this->customerSession->getCustomerId(),
22 $this->_objectManager->get(\
Magento\Store\Model\StoreManagerInterface::class)
26 $this->messageManager->addSuccess(
__(
'You will no longer receive price alerts for this product.'));
27 }
catch (\Exception $e) {
28 $this->messageManager->addException($e,
__(
'Unable to update the alert subscription.'));
32 $resultRedirect = $this->resultFactory->create(ResultFactory::TYPE_REDIRECT);
33 return $resultRedirect->setPath(
'customer/account/');