- Posts: 10
[Solved] Auto Enrollment not working (VM-Joomdle-Moodle)
- Marc
- Topic Author
- Offline
- New Member
-
Less
More
13 years 8 months ago - 13 years 7 months ago #1
by Marc
[Solved] Auto Enrollment not working (VM-Joomdle-Moodle) was created by Marc
Joomla 1.5.25
Virtuemart 1.1.6
Joomdle .07
Moodle 2.0.6
PhP 5.2.8
MySQL 5.0
Apache 2.0
We have been struggling to get auto-enrollment after Virtuemart course purchase is completed.
- The enrollment plugins enabled for the course are manual and Joomdle in that order. (we have tested it with and without Joomdle)
- The notify_url in VirtueMart is set to:
"notify_url" => SECUREURL ."administrator/components/com_joomdle/paypal_notify.php", (Permissions for this file are set to 644)
- Buy courses for children is set to no
- The Virtuemart order status is confirmed after Payal (sandbox) order completed.
- The order confirmaton emails are being sent.
- We tried adjusted the password security policy in Moodle to a less restrictive policy.
- After the Virtuemart Purchase, the Joomdle User is listed as:
Joomla Account
Moodle Account
Joomdle User
- The new virtuemart user is logged in to Joomla Front-end after the order is confirmed.
- When we access Moodle through the Moodle URL, the new user created via the Virtue Mart pruchase is logged in.
However, the user is not enrolled in the course. We also cannot see the course listed through the Joomdle "My Courses" menu item in Joomla front-end.
Virtuemart 1.1.6
Joomdle .07
Moodle 2.0.6
PhP 5.2.8
MySQL 5.0
Apache 2.0
We have been struggling to get auto-enrollment after Virtuemart course purchase is completed.
- The enrollment plugins enabled for the course are manual and Joomdle in that order. (we have tested it with and without Joomdle)
- The notify_url in VirtueMart is set to:
"notify_url" => SECUREURL ."administrator/components/com_joomdle/paypal_notify.php", (Permissions for this file are set to 644)
- Buy courses for children is set to no
- The Virtuemart order status is confirmed after Payal (sandbox) order completed.
- The order confirmaton emails are being sent.
- We tried adjusted the password security policy in Moodle to a less restrictive policy.
- After the Virtuemart Purchase, the Joomdle User is listed as:
Joomla Account
Moodle Account
Joomdle User
- The new virtuemart user is logged in to Joomla Front-end after the order is confirmed.
- When we access Moodle through the Moodle URL, the new user created via the Virtue Mart pruchase is logged in.
However, the user is not enrolled in the course. We also cannot see the course listed through the Joomdle "My Courses" menu item in Joomla front-end.
Last edit: 13 years 7 months ago by Chris.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7861
13 years 8 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic Re: Auto Enrollment not working (VM-Joomdle-Moodle)
Hi.
Is the order auto-confirmed by Paypal when payment is done?
If that's the case, I can't think of why enrolment woud not work.
Have you tested free enrolments?
Is the order auto-confirmed by Paypal when payment is done?
If that's the case, I can't think of why enrolment woud not work.
Have you tested free enrolments?
Please Log in or Create an account to join the conversation.
- Marc
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 10
13 years 8 months ago #3
by Marc
Replied by Marc on topic Re: Auto Enrollment not working (VM-Joomdle-Moodle)
The order status in Virtue Mart is set to confirmed when the Paypal transaction is completed. (Is that what you mean by auto-confirm)?
We have not tested Free enrollments. Do you mean self-enrollment through moodle with a default price of $0? or through Virtue Mart with a test course at $0?
We have not tested Free enrollments. Do you mean self-enrollment through moodle with a default price of $0? or through Virtue Mart with a test course at $0?
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7861
13 years 8 months ago #4
by Antonio Durán
Replied by Antonio Durán on topic Re: Auto Enrollment not working (VM-Joomdle-Moodle)
Yes, that is what I meant.
As for free enrolments: I mean, setting up a course with self-enrolment enabled, and then going to joomdle detail view, and click on "Enrol me" button.
Usually, people have problems with VM and Paypal, but if your orders are being confirmed, that is fine. But for some reason, enrolments are not happening.
As for free enrolments: I mean, setting up a course with self-enrolment enabled, and then going to joomdle detail view, and click on "Enrol me" button.
Usually, people have problems with VM and Paypal, but if your orders are being confirmed, that is fine. But for some reason, enrolments are not happening.
Please Log in or Create an account to join the conversation.
- Marc
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 10
13 years 8 months ago #5
by Marc
Replied by Marc on topic Re: Auto Enrollment not working (VM-Joomdle-Moodle)
We just tested self-enrollment through a Joomdle "course Details" menu link in Joomla and it worked fine.
Question: which enrollment plugins need to be enabled in Moodle in order for the Joomdle self enrollment after Virtue Mart purchase is confirmed to work?
For the self enrollment test, we only had Manual and self-enrollment enabled.
For the Joomdle auto enroll , we had manual and Joomdle plugins enabled.
Question: which enrollment plugins need to be enabled in Moodle in order for the Joomdle self enrollment after Virtue Mart purchase is confirmed to work?
For the self enrollment test, we only had Manual and self-enrollment enabled.
For the Joomdle auto enroll , we had manual and Joomdle plugins enabled.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7861
13 years 8 months ago #6
by Antonio Durán
Replied by Antonio Durán on topic Re: Auto Enrollment not working (VM-Joomdle-Moodle)
It's ok: only manual and joomdle should be enabled.
It seems you are trying with a new user on every purchase?
If so, try logging in first, and buying later, to see if it makes any difference.
It seems you are trying with a new user on every purchase?
If so, try logging in first, and buying later, to see if it makes any difference.
Please Log in or Create an account to join the conversation.
- Marc
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 10
13 years 8 months ago #7
by Marc
Replied by Marc on topic Re: Auto Enrollment not working (VM-Joomdle-Moodle)
We tried:
- reset Moodle enrollment plugins to Manual and Joomdle only
- logging in a registered Joomla user first (user is shown as Joomla, Joomdle and Moodle user in Joomdle user)
- purchasing course through Paypal sandbox
- going to course from Joomdle » Detail and Joomdle My Courses links
we get prompted to purchase course again (But Course button)
{Would be happy to provide you super administration credentials so you can see what we are doing wrong if you are at all inclined)
- reset Moodle enrollment plugins to Manual and Joomdle only
- logging in a registered Joomla user first (user is shown as Joomla, Joomdle and Moodle user in Joomdle user)
- purchasing course through Paypal sandbox
- going to course from Joomdle » Detail and Joomdle My Courses links
we get prompted to purchase course again (But Course button)
{Would be happy to provide you super administration credentials so you can see what we are doing wrong if you are at all inclined)
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7861
13 years 8 months ago #8
by Antonio Durán
Replied by Antonio Durán on topic Re: Auto Enrollment not working (VM-Joomdle-Moodle)
I am sorry, but I don't know what can be happening.
Only thing that I can think of is the products are not synced with Moodle. Try "delete from shop" and create it again and test purchase without doing any mods to the product.
Also, you could try debugging the joomdle ipn handler (paypal_notify.php) to try to find out what it's wrong.
Only thing that I can think of is the products are not synced with Moodle. Try "delete from shop" and create it again and test purchase without doing any mods to the product.
Also, you could try debugging the joomdle ipn handler (paypal_notify.php) to try to find out what it's wrong.
Please Log in or Create an account to join the conversation.
- Marc
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 10
13 years 8 months ago #9
by Marc
Replied by Marc on topic Re: Auto Enrollment not working (VM-Joomdle-Moodle)
Can you give any tips on how to debug the joomdle ipn handler (paypal_notify.php) ?
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7861
13 years 8 months ago #10
by Antonio Durán
Replied by Antonio Durán on topic Re: Auto Enrollment not working (VM-Joomdle-Moodle)
I usually put some file_put_contents calls into the code, to know what paths are being executed.
Please Log in or Create an account to join the conversation.