Backend Code to add product to cart