Component method to empty the cart