WooCommerce – Check if product is already in cart

Here is a snippet for WooCommerce that changes the “add to cart” button text when a product is already into the cart. It uses two filters, one to change the text on the product page, and one for the products list. Here are the results:[edit] code has been updated to be compatible with latest WooCommerce versions on Oct. 30th 2015

woocommerce-product-is-in-cart

woocommerce-product-is-in-cart-2