Well, you could sell the produce in pre-packaged counts or have a dedicated counter for bulk produce with an employee or two.
But the fact is that all the whining about "Amazon is going to be the end of cashiers" is unfounded speculation and fear mongering.
https://www.nytimes.com/2017/06/17/u...-cashiers.html
Not that people shouldn't be encouraged and helped to move beyond those kinds of entry level jobs but that kind of transition is still a decade or more away. Before that. B&M retail will need to finish rightsizing and stabilize at a profitable size.