Reply 333345 to: Changing the success Add to cart message

Avatar: Rose Tyler
Rose Tyler
Support staff
September 6, 2022 at 08:20

Hello,

You have a few options on how to modify that text :

1/ You may copy next file xstore/woocommerce/product-added-to-cart.php to your child-theme/woocommerce/product-added-to-cart.php and change this line of code due to your needs -> https://prnt.sc/g8jWQZwT5Chj
2/ According to the fact we are using the default wc_print_notice function and it has its own filter -> https://prnt.sc/O8hkQwF9fC9X you may modify your text just like you did but with the filter named -> ‘woocommerce_add_message’

Regards

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.