Disable add to cart button if product is already in WooCommerce cart
I want to disable the 'add to cart' button if the product is already added. I have managed to change the. test for an already added product so that it says 'Already added' for the button. The code or that…