I've lived without a car for most of my adult life (mid-30s now), and never owned one. In rough order of my own preferences, I've tried all of:
1.) I buy it someplace close and walk.
2.) I have larger-than-usual bags for my bicycle
3.) I order it online
4.) I pay for delivery
5.) I piggy-back with a friend who's driving to the same store and doesn't mind dropping me and my purchase off at my house.
6.) I rent a car
7.) I take it on public transit