This Plugin gives you the functionality when the user clicks on Add to Cart button it’ll clear their previous cart data entirely and add new cart data …
This Plugin gives you the functionality when the user clicks on Add to Cart button it’ll clear their previous cart data entirely and add new cart data, only allow one product purchase at a time.
Sometimes, the empty cart function does not work for login users and Persistent cart scenarios.
allow-only-1-product-in-cart
folder to the /wp-content/plugins/
directory.