Spelunky Natural can make fully functional shops with a shopkeeper and everything. I think it's possible in YASM as well, but I couldn't say exactly how. Vending machine are probably a good solution most of the time though, unless you specifically want robbing the shop to be an option.