R0.25 No Longer Supported

VirtueMart information not processed into Joomdle

  • Jan-Willem Wisgerhof
  • Topic Author
  • Offline
  • New Member
  • New Member
More
15 years 1 week ago - 15 years 1 week ago #1 by Jan-Willem Wisgerhof
VirtueMart information not processed into Joomdle was created by Jan-Willem Wisgerhof
Hi guys,

First of all, great product! I am using Joomdle 0.25 for one of my clients, and they absolutely love it. I would like to upgrade to 0.3 but I have made so many changes that I am dreading the task ;).

My problem is that the information from VirtueMart is not always taken over into Moodle. I have been working on this for days and can not find the issue! It (seems) completely random, sometimes when a user signs up their information is taken over to Moodle, sometimes it isn't.

I have added some debugging code in the plugins/xmlrpc/joomdle.php file (function getUserInfo). It seems that the query "SELECT * FROM #__vm_user_info WHERE user_id = '$id'" returns no result. I have checked all the user ids myself but they are correct and exist in the database.

EDIT: Sorry, just to clarify. The user is created, and the first name and last name are transferred. This is because the "if ($additional_info)" fails and goes into the "else".

Any idea why this is happening?

Cheers,

Jan
Last edit: 15 years 1 week ago by Jan-Willem Wisgerhof. Reason: Added some more information

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

More
15 years 1 week ago #2 by Antonio Durán
Replied by Antonio Durán on topic Re: VirtueMart information not processed into Joomdle
Hi Jan.

It is really good to hear that your clients are liking Joomdle.

As for your problems with VM info being passed, I am not sure why they are happening.
In R0.3 you have the ability to define "mappings" between VM and Moodle fields, so maybe it is better to upgrade.

As for the custom changes you made, you could always send the changes back to us, in case you think they could be useful for other users.

The only reason that the query would return empty, is that the user has no entry in vm user info table.

Antonio

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

  • Jan-Willem Wisgerhof
  • Topic Author
  • Offline
  • New Member
  • New Member
More
15 years 1 week ago #3 by Jan-Willem Wisgerhof
Replied by Jan-Willem Wisgerhof on topic Re: VirtueMart information not processed into Joomdle
I will tell my client that I will be upgrading to 0.3. I was thinking that the only reason this could happen is if (somehow) the Joomdle scripts fires BEFORE the VirtueMart script to add the "additional information".

I even tried "sleeping" the joomdle thread for a few seconds in between, but no change. Really strange :).

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

More
15 years 1 week ago #4 by Antonio Durán
Replied by Antonio Durán on topic Re: VirtueMart information not processed into Joomdle
That may be the cause....

How are you registering users?

Usually, I register through Joomla normal procedure, so at first users don't have VM info.
Then, when they shop first time, they are sked to complete their details (address, city,etc) and, when the purchase is completed, the user info is updated in Moodle with the new added info in VM.

So,, maybe you are comparing users who did purchases and users who didn't?

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

  • Jan-Willem Wisgerhof
  • Topic Author
  • Offline
  • New Member
  • New Member
More
15 years 1 week ago #5 by Jan-Willem Wisgerhof
Replied by Jan-Willem Wisgerhof on topic Re: VirtueMart information not processed into Joomdle
I have the normal Joomla registration turned off, so that should not be happening. It really baffles me, but I will try to update to 0.3 and see if it keeps happening.

Updating will take me some time though, my client runs about 10-20 Joomla websites with only 1 moodle. I have made it all work, although all of it is hardcoded (so not flexible at all to upload anywhere). Ah well, guess I'm gonna spend a night updating it sometime ;) (its all live).

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