Shop / e-Commerce Integration

How do I determine the default role in Moodle

  • derekbreth
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 10 months ago #1 by derekbreth
If a user buys a course through Virtuemart, how do I determine what role they will be assigned in the Moodle Course?

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

More
7 years 10 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic How do I determine the default role in Moodle
Hi.

Right now this is hardcoded to use default Student role. If you need to change it, you would need to do it in the code:
File: administrator/components/com_joomdle/helpers/content.php
Function: enrolUser
Change 5 by the ID of the role you want to use.

I think we could add an option for a future release, so you could configure which role you want Joomdle to use as student role.

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