title: WooCommerce Delete all products from cart and add current product to cart
body: <p>I am new to WooCommerce and I need to be able to only add one single product in the cart. I want to clear all products and add the current product to the cart when I click the "Add to cart" button.</p>
  
  <p>How can I do that ?</p>