News:

Support the VirtueMart project and become a member

Main Menu

Date of Birth for shoppers

Started by aftertaf, September 06, 2018, 21:22:31 PM

Previous topic - Next topic

aftertaf

Hi,
Does anyone know a working way (core hack, override, whatever,...) to get joomla! or Virtuemart to store the date of birth of shoppers?
I've searched the forum and found one thread without a solution as such (couldn't get it to work), and can't find any other documentation, example or use-case that anyone has described...
Using J3.8.12 and latest vm 3.2.14..
any pointers would be really appreciated, as i have so little time to dig around at the moment, so if anyone has already done something along these lines, would be great so see how you did it.
thx

Studio 42

You can create a userfield date plugin and only show this in the BT address

aftertaf

ok, but is there a way to make it actually be a date picker, not just a text field ?
I specified type 'date' when i created the new field, but in the frontend i can type 1975/01/01 or 01/01/1975 and neither get stored when i save the user.

I can add one in Joomla, and make it required, but I can't make this field then appear in the user profile for VM, or during registration process.
Isn't there a way to link Joomla and VM user fields ?

aftertaf

i've also tried the datepicker (age verification) field type : impossible to enter a value that the system actually accepts, and by making it mandatory i can't create a new account. So something is not working right here.
Would be much easier to just make any Joomla userfields that are flagged as mandatory appear in the VM registration/user maintenance page in same manner as e mail, username, etc...

Studio 42

I already answered you.
You need to use a VM userfield plugin, so you can write your own code

aftertaf

i'm a user with some overriding experience : i don't have the knowledge to do as you say, or the time to learn at the moment...
Anyway, i found a workaround, using the system user profile plugin, i can ask for DoB to be displayed, albeit on the joomla user profile page and not the virtuemart one.
this is enough for me to do what I need this for.