Hi All,
I'm setting up a store for a client who has certain products that are restricted to persons 18+. They would like the user to have to confirm that they are 18+ when adding a product to the cart.
My idea is to add a simple Javascript alert whenever someone attempts to add an 18+ product. If they click 'OK' it goes in, and if they click 'Cancel' it does not - pretty straightforward.
The trouble is that I'm not exactly sure how to flag the products appropriately. My thinking is that I could add a field to the 'products' table - TINYINT, called 'verifyage' - that would determine whether or not the product requires the JS notice.
From there, I would need to add a checkbox to the add product page that would update the DB appropriately, and would also need to tweak the appropriate PHP page to run the script when 'verifyage'=1.
Can anyone identify the files that I will need to edit to make this happen? Though I've worked with ZC a lot, I'm still not 100% clear where all the magic happens, especially when it comes to DB queries.



