Author Topic: virtuemart / joomla user fields mapping  (Read 246 times)

bilbaxo

  • Beginner
  • *
  • Posts: 20
    • cours et ressources informatiques
  • VirtueMart Version: 3.0.9
virtuemart / joomla user fields mapping
« 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)


but I need these fields correctly filled.
How can I do it ?
thank's for your help
J.Green

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1914
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: virtuemart / joomla user fields mapping
« Reply #1 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
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

bilbaxo

  • Beginner
  • *
  • Posts: 20
    • cours et ressources informatiques
  • VirtueMart Version: 3.0.9
Re: virtuemart / joomla user fields mapping
« Reply #2 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...

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1914
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: virtuemart / joomla user fields mapping
« Reply #3 on: February 01, 2019, 11:48:47 am »
Without screenshots impossible to tell ....


Jörgen @ Kreativ Fotografi
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

bilbaxo

  • Beginner
  • *
  • Posts: 20
    • cours et ressources informatiques
  • VirtueMart Version: 3.0.9
Re: virtuemart / joomla user fields mapping
« Reply #4 on: February 01, 2019, 11:57:08 am »
I joined the screenshots with a link and as joined pieces. Look at it please

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1914
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: virtuemart / joomla user fields mapping
« Reply #5 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
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

bilbaxo

  • Beginner
  • *
  • Posts: 20
    • cours et ressources informatiques
  • VirtueMart Version: 3.0.9
Re: virtuemart / joomla user fields mapping
« Reply #6 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...

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1914
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: virtuemart / joomla user fields mapping
« Reply #7 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
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

bilbaxo

  • Beginner
  • *
  • Posts: 20
    • cours et ressources informatiques
  • VirtueMart Version: 3.0.9
Re: virtuemart / joomla user fields mapping
« Reply #8 on: February 01, 2019, 16:17:09 pm »
yes this is the classical form of virtuemart or so I think :
https://imghostr.com/KBnDYB7f

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3626
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: virtuemart / joomla user fields mapping
« Reply #9 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

bilbaxo

  • Beginner
  • *
  • Posts: 20
    • cours et ressources informatiques
  • VirtueMart Version: 3.0.9
Re: virtuemart / joomla user fields mapping
« Reply #10 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...