Cart rendering function.