Plugin made for WooCommerce. Allows only one product per category in the cart. The latest added item stays, items of the same category that are already in cart are removed.
Important: Requires WooCommerce 3.1+. WooCommerce 3.0+ or higher recommended.
The plugin checks the cart when customer attempts to add a product and allows only one product per category in the cart. The latest added item stays, items of the same category that are already in cart are removed.
To set up: