Commit 067bd701 authored by Artem's avatar Artem

Revert "add notification when product added to cart on product page"

This reverts commit 8870f784
parent b8bfb59f
......@@ -6,11 +6,10 @@ function setAddToCardEventListener() {
.then(function (response) {
const cartAmountElem = document.querySelector('.amount-in-cart');
cartAmountElem.textContent = response.data;
toastr.success('Product added to cart');
})
.catch(function (error) {
console.log(error);
toastr.error('Error, something went wrong');
alert('Sorry, error, we are just learning how to code');
});
});
}
......
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