bluesware wrote:Hi,
For selling alcohol, I need to add some kind of age verification.
My ideas are:
1. Birthdate is required
-> Option isn't available, but easy to add. Would be nice if the attribute 'ValidationProperty' is added by default to the NopDatePicker
2. Checking for the age
-> Adding a CustomValidator
3. Adding a textbox, where he needs to confirm again that he is older than the minimum age
-> Adding another Field and CustomValidator
4. First payment needs to be done with a credit card, afterwards other payment methods are allowed
-> Is this possible? Any hints how to add this functionality?
Beside point 4, the necessary changes are clear. But how to change the PaymentMethod by user and by order?
Why not adding the functionality by default?
Thanks
Eric
Hi eric,
Your first 3 points are available in nopCommerce project.
1) Go to admin section > Configuration > Global Settings > 3rd Tab "Customer Profiles"
Now scroll down and you will see section that says "Form Fields: "
Now check the 2nd option that says "'Date of Birth' enabled:" (and SAVE CHANGES)
Now this field will be available in registration form in which who ever will register will have to fill out his/her date of brith.
To make it mandatory, you can easily add a "Required Field Validator" in the CustomerRegister.ascx module in the date of birth field.
2) Go to admin section > Configuration > Global Settings > Last Tab "Other"
4th option that says "Registration method:" CHOOSE ADMIN APPROVAL"
and SAVE CHANGES
Now whoever will register you as admin (or store owner) will only approve people who fulfill the age criteria.
3) See point 2 because it's the same thing (but if you still need it, you can add a checkbox)
4) don't understand your question - please mention what exactly you're trying to accomplish or mean by your 4th point.