One of our item's requires customer's to be approved or have a general password in order to purchase. I came up with this solution...
If whenever the "Add to Cart" code is called for this particular item, I can look for that and then if it matches this item's ID I can have them enter a code and do a simple match check in order for them to be able to add this to their cart.
1. What file is called when a user clicks "Add to Cart"? I need this to know where to edit the code at.
2. Can I just add an if statement that looks for the item's code and if it matches that I display another page to first get a password from the user and then if the password matches to allow the add to cart to proceed? This would all be hard-coded.
Is there any easier way of doing this with attributes for example? Any ideas?



