He just needed to pick up one more thing off his list and fill his cart, he grabbed some coffee on his way to checking out of where?
friend's house grocery store fast food restaurant
grocery store
the grocery store is the only place where he would be checking out and use a cart for the items on his list.
fill his cart