fix undefined sid when placing an order in menuView
change the way of logining.add discount info for confirmed orders.