Product page add to cart message problem / Debut theme

Hey,

I would like to know how can I remove the message ‘‘There was an error while updating your cart. Please try again.’’ that is showing when I try to add a product to my cart.

Thanks for the help.

Link : https://relentless-clothingz.myshopify.com

@Ulysse1300

You can hide the error message using CSS

  1. Go to your store Assets > theme.css or theme.css.liquid and paste the lines at the bottom of the file
.product-form__controls-group~.product-form__error-message-wrapper {
display: none;
}

If helpful then please Like and Accept Solution. Want to modify or custom changes on store Hire me. Feel free to contact me on shopify.dev.34@gmail.com | Shopify Design Changes | Custom Modifications In to Shopify Theme

@Ulysse1300

Does it happen with all products? Did you modify your product page recently? I’d try creating a dummy product just to double check whether it’s an issue with the theme or the product per se.

Kind regards,
Diego

Thanks for the answer.

The code is great but the notification of the product added in the cart is not there anymore and if we don’t refresh the page we don’t know the product is on the cart too.

Yes, it appears with all products even when I create a new one. Some people told me it was a problem with the theme.js which contains errors, but I never change anything in it.