before trying add to cart function