WooCommerce: Remove / Edit “Added to Your Cart” Message

A client recently asked me how to remove the message that appears after adding a product to the cart on the WooCommerce product page. This message can sometimes be unnecessary or distracting, especially if you want a smoother shopping experience.

Luckily, WooCommerce allows us to modify or completely remove it with a simple PHP snippet. Whether you prefer to hide the notice or customize the text, a quick code snippet in your theme’s functions.php or a custom plugin will do the job.

Here’s how you can remove or edit the “Added to Your Cart” message in WooCommerce.

Continue reading WooCommerce: Remove / Edit “Added to Your Cart” Message

WooCommerce: Hide Price & Add to Cart for Logged Out Users

You may want to force users to login in order to see prices and add products to cart. That means you must hide add to cart buttons and prices on the Shop and Single Product pages when a user is logged out.

All you need is to paste the following code in your functions.php or in a Code Snippet.

Please note: your theme may have overwritten some of the default WooCommerce functions, hence the code may not work. See the mini-plugin solution below if you want to make it happen and also have the chance to customize the call to action.

Enjoy!

Continue reading WooCommerce: Hide Price & Add to Cart for Logged Out Users