The shop is on the seventh stage, you can walk freely through each stage ignoring the enemies, and if you kill or hurt one on the way it remembers when you come back. It's open ended, you don't have to wait, you can just walk past the enemies.