Virtuemart Field Data Mapping Not Working
10 years 2 months ago
Topic Author
Virtuemart Field Data Mapping Not Working #1
System health check is good. Users are set up in Moodle, Joomla and Joomdle.
If a user's Virtuemart information changes (e.g. their address) and I use Joomdle's 'Sync Moodle Profiles', it works to update the Moodle information, but if a user's information changes and they just login to Joomla and then Moodle, the information isn't updated in Moodle.
Any ideas what I might be missing?
If a user's Virtuemart information changes (e.g. their address) and I use Joomdle's 'Sync Moodle Profiles', it works to update the Moodle information, but if a user's information changes and they just login to Joomla and then Moodle, the information isn't updated in Moodle.
Any ideas what I might be missing?
Please Log in or Create an account to join the conversation.
10 years 2 months ago
Virtuemart Field Data Mapping Not Working #2
> but if a user's information changes and they just login to Joomla and then Moodle, the information isn't updated in Moodle.
How is the information changed? Are they changing it in VM in frontend? Saving user info in Joomla should trigger sync to Moodle.
How is the information changed? Are they changing it in VM in frontend? Saving user info in Joomla should trigger sync to Moodle.
Please Log in or Create an account to join the conversation.
10 years 2 months ago
Topic Author
Virtuemart Field Data Mapping Not Working #3
I'm changing the VM information on the backend (because I have a bug when changing it on the front end at the moment), but it should still work right?
Please Log in or Create an account to join the conversation.
10 years 2 months ago
10 years 2 months ago by Antonio Durán.
Virtuemart Field Data Mapping Not Working #4
Yes, that should work, assuming you have defined the needed mappings.
You can also test saving user in normal user form in Joomla backend, to see if that works.
You can also test saving user in normal user form in Joomla backend, to see if that works.
Please Log in or Create an account to join the conversation.
10 years 1 month ago
Topic Author
Virtuemart Field Data Mapping Not Working #5
I still haven't solved this, but here's an interesting update. I'm not sure why this happens, but:
-If I go and change 1 piece of information in the Virtuemart front end (e.g. first name) and then login to Moodle, it doesn't get updated in Moodle.
-Even if I log out and back in to both Moodle and Joomla multiple times, still nothing happens.
-But if I go and change another piece of information in the Virtuemart front end (e.g. city) and then login to Moodle, the 1st piece of information from up above gets changed (first name), but not the 2nd piece of information (city). If I go and change a 3rd piece of information (e.g. zip code), then the 2nd piece of information (city) gets updated, but not the 3rd. And so on...
Any thoughts as to why that would be?
-If I go and change 1 piece of information in the Virtuemart front end (e.g. first name) and then login to Moodle, it doesn't get updated in Moodle.
-Even if I log out and back in to both Moodle and Joomla multiple times, still nothing happens.
-But if I go and change another piece of information in the Virtuemart front end (e.g. city) and then login to Moodle, the 1st piece of information from up above gets changed (first name), but not the 2nd piece of information (city). If I go and change a 3rd piece of information (e.g. zip code), then the 2nd piece of information (city) gets updated, but not the 3rd. And so on...
Any thoughts as to why that would be?
Please Log in or Create an account to join the conversation.
10 years 1 month ago
Virtuemart Field Data Mapping Not Working #6
Hi. Sorry fot the really slow reply, somehow I missed notification for your post.
What you describe is expected behaviour. I will try to explain:
Virtuemart triggers onUserAfterSave event when you save address info. This event is what Joomdle reacts to.
Problem is that VM triggers event before saving address info to database, so when Joomdle plugin tries to fetch info, it is not there. But, if you save info again, old info is already in table, so the plugin can read it.
Thi is usually not a problem, since most of the time user will only change address info on purchase, and we trigger profile sync on course enrolment.
So, if a user goes now to purchase a course, and he edits the address info, this info will be synced to Moodle when enrolment is done.
> -Even if I log out and back in to both Moodle and Joomla multiple times still nothing happens.
We do not trigger profile update on user login.
Please let me know if you need any more info.
What you describe is expected behaviour. I will try to explain:
Virtuemart triggers onUserAfterSave event when you save address info. This event is what Joomdle reacts to.
Problem is that VM triggers event before saving address info to database, so when Joomdle plugin tries to fetch info, it is not there. But, if you save info again, old info is already in table, so the plugin can read it.
Thi is usually not a problem, since most of the time user will only change address info on purchase, and we trigger profile sync on course enrolment.
So, if a user goes now to purchase a course, and he edits the address info, this info will be synced to Moodle when enrolment is done.
> -Even if I log out and back in to both Moodle and Joomla multiple times still nothing happens.
We do not trigger profile update on user login.
Please let me know if you need any more info.
Please Log in or Create an account to join the conversation.