code to create cart and add products.