loop for adding cart items.