- Posts: 16
Shop / e-Commerce Integration
Can't Map Hikashop Custom Last Name Field to Moodle Surname/Lastname
- ACM
- Topic Author
- Offline
- New Member
-
Less
More
7 years 1 month ago #1
by ACM
Can't Map Hikashop Custom Last Name Field to Moodle Surname/Lastname was created by ACM
Hello again Antonio,
Current with all software (Moodle 3.6.3, Joomla 3.9.4, Hikashop 4.0.3, PHP 7.1.27)
We are having problems mapping a Hikashop address_lastname field to Moodle's lastname/surname. It used to work, but doesn't anymore.
We are mapping two data sources to Moodle: EasyProfile (Primary) and Hikashop (secondary). After mapping both, we set the EasyProfile as the add'l data source in Joomdle config.
In Joomla, we only use First Name in the basic profile. Easy Profile can extend to have separate Last Name, but we are not using that.
Hikashop uses Joomla's first registration field that is a Preferred Name/Nickname which is only one field (basically one field for fullname). It is only for display from what I can see.
Hikashop extends the Joomla's registration with a block of fields for Address Information. We made sure we had separate fields for First Name, Middle Name, and Lastname. We mapped them all, including Hikashop's address_lastname to Moodle's "lastname" (the shortname), which is actually labeled Surname in Moodle profile. Recently we noticed that Moodle Surname is required. Any attempts to edit profile on Moodle side now requests that we fill in Surname.
Now mapping doesn't work to Surname...
A change to Hikashop Address Last Name does not change Moodle Surname.
A change to Moodle Surname does not change Hikashop Address Lastname, but ..Surprise! ... it does change the Preferred Name/Nickname (that single ful name field used for display in Joomla user profile).
So again, our mapping of last name used to work, but now it doesn't.
What do you suggest we do, or is this a bug now that needs fixing?
Thanks again for keeping your head wrapped around all of this complexity,
Jim
Current with all software (Moodle 3.6.3, Joomla 3.9.4, Hikashop 4.0.3, PHP 7.1.27)
We are having problems mapping a Hikashop address_lastname field to Moodle's lastname/surname. It used to work, but doesn't anymore.
We are mapping two data sources to Moodle: EasyProfile (Primary) and Hikashop (secondary). After mapping both, we set the EasyProfile as the add'l data source in Joomdle config.
In Joomla, we only use First Name in the basic profile. Easy Profile can extend to have separate Last Name, but we are not using that.
Hikashop uses Joomla's first registration field that is a Preferred Name/Nickname which is only one field (basically one field for fullname). It is only for display from what I can see.
Hikashop extends the Joomla's registration with a block of fields for Address Information. We made sure we had separate fields for First Name, Middle Name, and Lastname. We mapped them all, including Hikashop's address_lastname to Moodle's "lastname" (the shortname), which is actually labeled Surname in Moodle profile. Recently we noticed that Moodle Surname is required. Any attempts to edit profile on Moodle side now requests that we fill in Surname.
Now mapping doesn't work to Surname...
A change to Hikashop Address Last Name does not change Moodle Surname.
A change to Moodle Surname does not change Hikashop Address Lastname, but ..Surprise! ... it does change the Preferred Name/Nickname (that single ful name field used for display in Joomla user profile).
So again, our mapping of last name used to work, but now it doesn't.
What do you suggest we do, or is this a bug now that needs fixing?
Thanks again for keeping your head wrapped around all of this complexity,
Jim
Please Log in or Create an account to join the conversation.
- ACM
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 16
7 years 1 month ago #2
by ACM
Replied by ACM on topic Can't Map Hikashop Custom Last Name Field to Moodle Surname/Lastname
I also tested Joomla basic First name field and see that it maps to Moodle First Name, but if Joomla's First name field contains a name string with first AND last name separated by a space, then a parsing occurs and Moodle gets both firstname and surname populated.
This definitely looks like design and not a bug.
So it looks like I will have to create custom user fields in Moodle for Address_Lastname, Address_Middlename, Address_Lastname and map those to Hikashop's address fields.
Does this sound reasonable?
This definitely looks like design and not a bug.
So it looks like I will have to create custom user fields in Moodle for Address_Lastname, Address_Middlename, Address_Lastname and map those to Hikashop's address fields.
Does this sound reasonable?
Please Log in or Create an account to join the conversation.
- ACM
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 16
7 years 1 month ago #3
by ACM
Replied by ACM on topic Can't Map Hikashop Custom Last Name Field to Moodle Surname/Lastname
Antonio,
I also discovered that my Hikashop fields (address fields) are not syncing at all. Again, I mapped fields and then switched to EasyProfile as the add'l data source in Joomdle config.
Please confirm if the correct plugins are installed. Here are my plugins and their status.
Do i need to enable Joomdle Hikashop User profile Site Plugin 1.1.0 2017 Qontori Pte Ltd joomdleprofile 10722 - this plugin also asks if we want it to be a secondary data source just like the following plugin...they seem similar:
Joomdleprofile - Joomdle Easyprofile profile Site Plugin 1.2.0 2014 Qontori Pte Ltd joomdleprofile 10522
thanks, Jim
I also discovered that my Hikashop fields (address fields) are not syncing at all. Again, I mapped fields and then switched to EasyProfile as the add'l data source in Joomdle config.
Please confirm if the correct plugins are installed. Here are my plugins and their status.
Do i need to enable Joomdle Hikashop User profile Site Plugin 1.1.0 2017 Qontori Pte Ltd joomdleprofile 10722 - this plugin also asks if we want it to be a secondary data source just like the following plugin...they seem similar:
Joomdleprofile - Joomdle Easyprofile profile Site Plugin 1.2.0 2014 Qontori Pte Ltd joomdleprofile 10522
thanks, Jim
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
7 years 4 weeks ago #4
by Antonio Durán
Replied by Antonio Durán on topic Can't Map Hikashop Custom Last Name Field to Moodle Surname/Lastname
Hi Jim.
If Hikashop data sync is not working at all, first thing to check is that you have enabled "Enable as secondary data source" option in Hikashop Joomdle profile plugin.
Also, go to Joomla backend, users, and save the user there without any mods, so sync process is triggered. Then check Moodle. This is to know if problem may be coming from Hikashop events not being handled by the Joomdle plugin.
> Do i need to enable Joomdle Hikashop User profile Site Plugin
Only if you want to map data from Hikashop user table, instead of address. As you are using address info, you don't need it.
You seem to have all required plugins. Just one note: you have enabled Joomdle Hikashop normal plugin, and also the groups one. You should only run one of them.
If Hikashop data sync is not working at all, first thing to check is that you have enabled "Enable as secondary data source" option in Hikashop Joomdle profile plugin.
Also, go to Joomla backend, users, and save the user there without any mods, so sync process is triggered. Then check Moodle. This is to know if problem may be coming from Hikashop events not being handled by the Joomdle plugin.
> Do i need to enable Joomdle Hikashop User profile Site Plugin
Only if you want to map data from Hikashop user table, instead of address. As you are using address info, you don't need it.
You seem to have all required plugins. Just one note: you have enabled Joomdle Hikashop normal plugin, and also the groups one. You should only run one of them.
Please Log in or Create an account to join the conversation.