Within their rights legally does not necessarily mean a prudent way to run a business.
They can do it.
And customers can sue.
I really don’t think stores would enjoy the costs or discovery.