complete cart function and add order page