Empty cart before add to cart in WooCommerce
This function will reset/empty the cart and will add the last product to the cart. This is a WooCommerce PHP function that over wright the WC cart function. We can use this function for individual product selling websites or for a subscription website. Add the following code in the function.php file of your active child
Read More