The ecommerce part is really just like any other, but it's really down to the bakery to ensure that bread is delivered on time (and still fresh!).
I think the key here is for customers to be able to specify what day they want their bread delivered. That way orders can be taken in advance so the bakery knows how many loaves to bake each night.
- For delivery "tommorrow" I would expect that there would be a cut off time, so maybe I would have to order before 6pm to get my delivery tomorrow morning.
- For delivery for other times I would be able to select "next Friday" for my bread to be delivered.
Of course the other big factor is the area that the bakery delivers to. If it's in the same town/local area that's not really a problem because they can deliver in their own van, but if they want to ship bread further away then of course you start getting into 24 hour delivery times which may not be so good!