The list does not end at the checkout. It gets a receipt.
A shopping list is otherwise a one-off note: it is emptied, it is thrown away, and then nothing is left of it. After the shop you can link the receipt to the list instead, so the two belong together.
Then afterwards you can see what the shop cost and what actually ended up in the basket. Next time you do not have to guess.