Besides, if I want to sell a used book on Amazon, maybe I don’t have the receipt anymore.
No, the easiest solution is to prosecute shoplifters - not to reorganize honest society around them.
If cities don’t want to do that anymore then products will be expensive and difficult to buy - and eventually there will only be Amazon left.