VirtueMart Forum

VirtueMart 2 + 3 => Administration & Configuration => Topic started by: bilbaxo on February 01, 2019, 10:48:20 am

Title: virtuemart / joomla user fields mapping
Post by: bilbaxo on February 01, 2019, 10:48:20 am
joomla 3.9.2 / Virtuemart 3.4.2
Hello,
The virtuemart registration form doesn't map correctly the informations between the tables "virtuemart_userinfos" and "users"
When I create a new user (with the virtuemaret registration form"), the table "virtuemart_userinfos" is correctly filled but not the joomla user fields.
In this table, the fields "name" and "username" have the same information, lhe virtuemart username (see the pictures)
(https://imghostr.com/6AtArA4r)
(https://imghostr.com/zGserPLs)
but I need these fields correctly filled.
How can I do it ?
thank's for your help
J.Green
Title: Re: virtuemart / joomla user fields mapping
Post by: Jörgen on February 01, 2019, 11:20:40 am
This should be no problem, how do You fill in the data ?
Custom template ?
OPC ?

Displayed name and username should be different, if You choose to, it is up to You when You fill in the form.

If You fill in the same info, the will be the same, if You omit any of these in the form two I think the result is the same.

Jörgen @ Kreativ Fotografi
Title: Re: virtuemart / joomla user fields mapping
Post by: bilbaxo on February 01, 2019, 11:43:46 am
thank's for your answer but I am not sure you undestood.
The form (custom template) is correctly filled by the user (mail, username, name, surname) but the infos are not correct in the joomla user table only in the virtuemart table user...
Title: Re: virtuemart / joomla user fields mapping
Post by: Jörgen on February 01, 2019, 11:48:47 am
Without screenshots impossible to tell ....


Jörgen @ Kreativ Fotografi
Title: Re: virtuemart / joomla user fields mapping
Post by: bilbaxo on February 01, 2019, 11:57:08 am
I joined the screenshots with a link and as joined pieces. Look at it please
Title: Re: virtuemart / joomla user fields mapping
Post by: Jörgen on February 01, 2019, 12:56:07 pm
I have looked at them, please show how You fill in the fields. The original screenshots say nothing.

Jörgen @ Kreativ Fotografi
Title: Re: virtuemart / joomla user fields mapping
Post by: bilbaxo on February 01, 2019, 14:28:18 pm
I can ask my question another Way :
If you look at the same tables in your site, are the tables ok or the same as me...
I precise that I have disabled the plugin which could create a problem and I made a new installation of Virtuemart upon the first to be sure the files are ok...
Title: Re: virtuemart / joomla user fields mapping
Post by: Jörgen on February 01, 2019, 15:01:58 pm
In my site I can distunguish between username and displayed name because they are separate input fields in the registration form. Therefore they are stored exactly as they should be. That is why I asked You to show how You handle the input on screen. If You have a custom template this can be changed.

Jörgen @ Kreativ Fotografi
Title: Re: virtuemart / joomla user fields mapping
Post by: bilbaxo on February 01, 2019, 16:17:09 pm
yes this is the classical form of virtuemart or so I think :
https://imghostr.com/KBnDYB7f
Title: Re: virtuemart / joomla user fields mapping
Post by: Studio 42 on February 01, 2019, 16:39:16 pm
The Joomla user is set in /administrator/components/com_virtuemart/models/user.php
function store()
So check if you have right value on store
Title: Re: virtuemart / joomla user fields mapping
Post by: bilbaxo on February 01, 2019, 18:43:26 pm
I was looking for this file but I didn't find it : I didn't look in the administrator  folder.
But it seems ok. I compare with the original with Winmerge ans there is no difference.
I joint it...