created cart_parser to parseitems for the cart