Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services

Map fields from Joomla user profile to Event booking participant registration

  • Martin Herzhauser
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 days 14 hours ago #178487 by Martin Herzhauser
Is it possible to define which (custom) fields from a joomla user profile can automaically used during a registration for an event as default values? I'm thinking about phone number, adress, and other values...

Regards,
Martin

Please Log in or Create an account to join the conversation.

More
5 days 5 hours ago #178494 by Tuan Pham Ngoc
Hi Martin

Yes. You can, see docs.joomdonation.com/eventsbooking/basi...#joomla-user-profile for instructions to setup

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Martin Herzhauser
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 days 22 hours ago #178524 by Martin Herzhauser
Hi tuan.
This feature works the other direction than expected: It does not read values from the joomla user, but writes values to the joomla user AND overwrites them.

Can this be changed?

Please Log in or Create an account to join the conversation.

More
3 days 21 hours ago #178525 by Tuan Pham Ngoc
That's strange. When user logged in and register for the event, the plugin will read the value from user custom fields and use these values to populate registration form fields so that user does not have to enter data for these fields again

It also write data back to user custom fields when registration completed. That's how it works

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Martin Herzhauser
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 days 18 hours ago #178526 by Martin Herzhauser
Ok, the first direction is for some reason not working...

The second direction is working but not wanted... :-)

I'll try to understand the code...

Please Log in or Create an account to join the conversation.

More
3 days 17 hours ago #178527 by Eduardo Correa
Is the Auto Populate Registration Form Data option enabled?

Please Log in or Create an account to join the conversation.

  • Martin Herzhauser
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 days 13 hours ago - 3 days 9 hours ago #178534 by Martin Herzhauser
Yes.
I tested a little bit deeper and found, that I cannot map anything to last_name...but I can map to every other field.
Last edit: 3 days 9 hours ago by Martin Herzhauser.

Please Log in or Create an account to join the conversation.

More
3 days 4 hours ago #178537 by Tuan Pham Ngoc
There should not be any difference between Last Name and other fields. So I don't understand why you cannot map with last name field. You can submit a support ticket sending us super user account of your site so that I can check it

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Martin Herzhauser
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
1 day 10 hours ago #178543 by Martin Herzhauser
Found it.
File base.php under components\com_eventbooking\view\register
Line 75:
$data = $lastName;

I think a check like

if (!isset($data))
{
$data = $lastName;
}

should do the trick? On the joomla name field I store only the lastname of a user, the firstname is saved on a custom field. And I had to cross it in eventbooking as the first_name of eventbooking is corresponding to the joomla user name.
But I see a little risk for persons with more parts in the name like Leonardo da Vinci or Vincent van Gogh. I should perhaps deactivate the automatic check for a space to separate names...

Please Log in or Create an account to join the conversation.

More
1 day 3 hours ago #178547 by Tuan Pham Ngoc
The suggested change does not look right to me. Also, on your site, you do not map first_name field, only last_name ?

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc