VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Deepjungle on October 01, 2012, 19:10:34 PM

Title: Age Verification not working
Post by: Deepjungle on October 01, 2012, 19:10:34 PM
Hello,

i'm using actual Joomla 2.5.7 and virtuemart 2.0.10. I have user field birthday with age verification. The minimum age is set to 18 years. If i edit the age in my account i can input every year i wont even 2011 or 2012 are accepted when i save. If i try to order with this settings there is now check for the age that is given. I can order without problems. Field is set to required and all other options are activated.

Need some help with this.
Title: Re: Age Verification not working
Post by: Ale_Gea on October 02, 2012, 15:16:54 PM
I have the same problem (and the same configuration)   :-\

the field also  has a wired format. I select may, 12, 1998 and I see am.05.12

Any idea?
Title: Re: Age Verification not working
Post by: Ale_Gea on October 02, 2012, 15:33:08 PM
I checked the database. in the xxxx_virtuemart_userinfos my age verification field has this value    0-0-0...
I think this is the issue, but i'm not able to solve it

I also noted that the field type is varchar(255), not date. That's not correct, imho
Title: Re: Age Verification not working
Post by: kishoreonwork on March 09, 2013, 20:42:56 PM

I also have same issue while saving the dob. and after some debugging i found that there are issues in the coding .

In administrator/components/com_virtuemart/models/userfields.php file around line no 120

case 'age_verification':

// 09March 2013 KM This line causing issue while saving
/*$value = JRequest::getInt('birthday_selector_year')
.'-'.JRequest::getInt('birthday_selector_month')
.'-'.JRequest::getInt('birthday_selector_day');*/

break;



comment the above code and now dob will be saved correctly

Thanks
Kishore

Title: Re: Age Verification not working
Post by: TRIPLEdm on June 23, 2013, 12:45:25 PM
Hello,

I have the exact same problem but commenting out the line does not work for me.

Is there someone on the forums with a solution please?
Title: Re: Age Verification not working
Post by: loai90 on December 30, 2013, 12:48:03 PM
I have the same problem as well

any one can help us !?  :-\
Title: Re: Age Verification not working
Post by: fjed on September 12, 2014, 20:41:47 PM
Any help?
Title: Re: Age Verification not working
Post by: anksuthar on February 24, 2016, 10:44:45 AM
I have same problem and I want to know how to solve min age verify validation issue. any date are submit without checking any age
Title: Re: Age Verification not working
Post by: xcesar on April 29, 2016, 01:18:32 AM
Same problem ((((( :( :(
Title: Re: Age Verification not working
Post by: Studio 42 on April 29, 2016, 21:41:53 PM
Hi,
The age verification have no script in all since vm 1.9.8. and above
If you need this, you have to write a Joomla system plugin and check/redirect yourself.

But i think age verification is stupid. Adding a checkbox "I'm over 18 years" is simplier and have same result, you can never know if  someone give the real birthday or you need some official way to control the age ;)