added availability logic to ordersummary