When click on add to cart button, the Woocommerce shows the message, view cart, I want to edit this message, actually edit all the span, put some icon etc...
If you look at add-to-cart.js
it fires a trigger added_to_cart
on adding a product to cart. I hooked into that and did this
jQuery(document.body).on("added_to_cart", function( data ) {
jQuery('button.added').nextAll().remove();
jQuery('button.added').after(' Cart Updated');
});
Here you can add anything after product is added to cart.
Hope that helps!