Distance selling regulations helped with it a lot. I can buy a product online and if I'm not happy with it, for any reason, I can send it back for a refund. This just isn't the case with shopping in a store.
I learned this the hard way twice buying in store from Argos in the UK, only to get home and find I had bought a used product which someone else had returned already. Argos refused to refund or replace the items because they are used.
I looked this up at the time and it seemed to be a common occurrence, I can only assume people returned items they bought online and Argos just put them back on the shelves.
Had I bought it online and had it delivered to my house I could have returned it. I buy online wherever possible now.
Interestingly "click-and-collect" services are not covered by distance selling regulations which is how I got burned twice by Argos.