Forums / General Questions / Password protecting one item from purchase

Password protecting one item from purchase

Locked

Views: 716

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
3 Jul 2008, 11:01 AM
#1
davemehta avatar

davemehta

Zen Follower

Join Date:
Aug 2005
Posts:
130
Plugin Contributions:
0

Password protecting one item from purchase

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?