Author Topic: VM3 User fields: Date or ageverification don't work / save date in database  (Read 728 times)

ThijsGaublomme

  • Beginner
  • *
  • Posts: 25
  • A beginner
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 7780
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

ThijsGaublomme

  • Beginner
  • *
  • Posts: 25
  • A beginner

This worked perfectly!

Thank you very much.

aftertaf

  • Jr. Member
  • **
  • Posts: 200
    • sO couture
  • VirtueMart Version: 3.2.14
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)
Webmaster for my wife (link in my profile ;)
Extensions / plugins : POSForWebshops, TemplatecreatorCK ,MaximenuCK, and PageBuilderCK, VM BatchEdit Pro, VM CustomFilters Pro, Awocoupon Pro, slogin, supersaas,  among other things...
Joomla! 3.8.6//VM 3.2.14//PHP7.0.18 & mariadb 10.1.22 on Debian
big up to notepad++!!!!