Delivery is indeed the difficulty and the solution depends on the coming of age of self-driving cars (level 5). My experience of ordering online from supermarkets is that a guy drives a van around and takes your order to your front door. In suburban areas (i.e. houses not flats) we can imagine self-driving vans stopping in front of your houses and letting you collect your order like a vending machine. This is not possible now because there are no self-driving cars but the instant they become commercially available I bet this will quickly become the norm.
Automated warehouses plus self-driving cars enable a fully automated process from order to delivery. I'm sure we'll get there.
Drones are simpler to fly autonomously but I don't think they are practical for delivering 10s of kilos of stuff to residential areas.
https://www.youtube.com/watch?v=x05SFt9BN0w
As long as the max. Delivery matches the biggest package possible, since drones have a way cheaper cost of ownership + delivery + quicker.