He had .......... opened the doors of the shop .......... a customer came in and bought all the fresh cream cakes.