code for adding line items to cart