How do I remove view cart link?

Hi there,

Hope you all are doing well and safe.
Can you please guide me to the process to remove view cart link which appears after you add an item to cart. I want to remove it as I am using some other cart than theme’s default cart. Image attached below.

Thanks in Advance.
Stay Safe!

Hello there,

Thank you for contacting us.
I hope you’re doing well today.

That notice is actually part of WooCommerce code. You can hide it with this PHP snippet.

   add_filter( 'wc_add_to_cart_message_html', '__return_false' );

Add to your child theme’s functions or use Code Snippets plugin if you aren’t running any child theme.

Stay safe.
Have an excellent day :slight_smile:

Regards,
Kharis
aThemes Support

It worked! Thanks a lot. :slight_smile:

1 Like

You’re welcome!

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Stay safe.
Have an excellent day :slight_smile:

Regards,
Kharis
aThemes Support