added code to add_quantity_to_line_items