For that you have to count item in ajax successes and then make Js code to replace on cart icon.
Hi @Jasoliya ,
I have followed your suggestion adding the code under the theme.scss, the page seems to remain, but when I click on add to the cart, the products don't end up being added.
Do you know why this might be the problem?
At the moment our home url is based on Narrative theme, but tonight / tomorrow we are shifting on Debut which I have been working on to prepare with these "add to cart" function under collection page, which is featuring on home page as well as under products page.
I can either send the url after changing our shop theme to Debut, but I would prefer to fix this issue before we make a shift.
If you add button on collection page grid it will also work on home page.