Hi @shameemreza,
Thank you for the help!!!
It solved the problem! Was looking for a solution for a long time.
For anyone with the same problem, wanting to change the woocommerce item already in the cart notice, I explain what I did:
Install the Say What plugin
Add a new text entry
<span style=”text-decoration: underline;”>For the notice text</span>:
Original string: You cannot add another “%s” to your cart.
Text domain: woocommerce
Text context: (you can leave this blank)
Replacement string: (Add here the new text you want to appear
<span style=”text-decoration: underline;”>For the notice button</span>:
Original string: View cart
Text domain: woocommerce
Text context: (you can leave this blank)
Replacement string: (Add here the new text you want to appear)
Where I found the Original String for this:
From your dashboard go to?plugins
?–>?plugin editor
?–>?WooCommerce
?–>?plugin files
?–>?class-wc-cart.php
Usefull links to help you better understand the plugin: