News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

VM3 User fields: Date or ageverification don't work / save date in database

Started by ThijsGaublomme, August 18, 2016, 08:54:13 AM

Previous topic - Next topic

ThijsGaublomme

Hello,

I allready searched the forum and internet but haven't found a solution.

I would like to add a user field in the registration form where users can fill in their birthdate.
We work wit ACYSMS to send birthday sms's with a coupon code.

I've tried the date field, result: Datepicker shows only this year (2016) Not usefull for a birthdate.
I've tried the age verification, result: Date gets picked correct, but when I save this, the database field stays empty.

How can I add a date field with a datepicker in the user registration of virtuemart on my website.

I work with joomla Joomla! 3.6.2 and  VirtueMart 3.0.16

Thank you for a quick reply!

GJC Web Design

Don't know why birthday doesn't save but u can change the date range in
administrator\components\com_virtuemart\helpers\vmjsapi.php ~ line 782

from

'.$yearRange.'

to

yearRange:"1900:2016",

or play around with the call in administrator\components\com_virtuemart\models\userfields.php
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

ThijsGaublomme


aftertaf

same issue here, one line 793 i made the suggested change but it's not fixing it at all...
any help would be appreciated..
(vm 3.2.14)