Confirm Age to enter shop
Posted: Wed Dec 07, 2022 7:38 pm
In Denmark (and many other countries) it is required for a shop to have some system to avoid selling certain good to people below a certain age.
This guide is for England and Wales, but a lot of the points apply to Denmark as well, so I guess they may for other places too.
Anyway, I have made a very simple hook that generates an overlay over the entire screen, forcing the visitor to either confirm or leave the shop. When a visitor confirms, it sets a cookie with a life-span of one year, meaning they don't have to confirm every time they visit your shop. This means that it is very minimalistic and focused on customer experience rather than the responsibility one could take to avoid selling things to under-age people, but it's better than nothing, and it has been approved by the Danish department for that kind of stuff as sufficient. As far as I can think, the cookie is a functional one, so adding this hook shouldn't force you to have the "agree to use of cookies" pop-up, at least in the EU.
It's packaged with the Zipur Bundler, so you can install with that or the Installer, or you can simply ignore the file "update.php".
Of course, feel free to alter and share any improvements or thoughts you may have.
//Daniel
This guide is for England and Wales, but a lot of the points apply to Denmark as well, so I guess they may for other places too.
Anyway, I have made a very simple hook that generates an overlay over the entire screen, forcing the visitor to either confirm or leave the shop. When a visitor confirms, it sets a cookie with a life-span of one year, meaning they don't have to confirm every time they visit your shop. This means that it is very minimalistic and focused on customer experience rather than the responsibility one could take to avoid selling things to under-age people, but it's better than nothing, and it has been approved by the Danish department for that kind of stuff as sufficient. As far as I can think, the cookie is a functional one, so adding this hook shouldn't force you to have the "agree to use of cookies" pop-up, at least in the EU.
It's packaged with the Zipur Bundler, so you can install with that or the Installer, or you can simply ignore the file "update.php".
Of course, feel free to alter and share any improvements or thoughts you may have.
//Daniel