added the hideproduct function to the checkout button