A device that looks like a smartphone is making supermarket shoppers—and stores—happier. Perched on the handle of the shopping cart, it scans grocery items as the customer adds them to the cart.

Shoppers like it because it helps avoid an interminable wait at the cashier. Retailers like it because the device encourages shoppers to buy more.

With...