How does it affect you though? Not the shops fault you forgot the receipt. Get a grip, worry about things which are actually important in life.
I didn't forget any receipt. Another person had it as I explained.
Why would you think it's not legal?
Sale of Goods Act.