Hi can you recommend me some woocommerce plugin(maybe I don’t need plugin and it’s matter of right setting) for this use case:
I don’t want to increment quantity of the product if product exist in the cart.
User can increment quantity of product in the cart
2 comments
Comments are closed.
Please try this hook into your function.php file
The best way to solve this would be to hook into the woocommerce_add_to_cart_validation action hook. You could do something like this (not tested):
This will basically skip adding product to cart if it already exists there.
Just keep in mind that if you sell advanced configurable products, you may wish to add additional checks besides just comparing product IDs.