Where I am, to unlock a cart, you have to insert a coin, and afterwards, to get the coin back, you have to lock the cart to another cart (thatβs hopefully part of the pile). It mostly works.
They do this at one particular store here. They also pay really well, have incredible prices, and let their cashiers sit in chairs while they check groceries. I like that store.