implements the option to clear the cart