How To / General

Add user in a course when created in Joomla

  • Otávio Melo
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 4 months ago - 11 years 4 months ago #1 by Otávio Melo
Add user in a course when created in Joomla was created by Otávio Melo
I wonder if I can add the user to a right course when it is created in Joomdle. Or if I can release a list of courses for a group in Joomla.

I am developing a tool in Joomla that verifies the purchase of a product and would like to release different courses according to the purchase of the user. I'm not sure of the possibilities:
a) Register the user with a group of Joomla, and this group would have a list of courses he could access.
b) In the User register/verify, release only the courses he paid.

Could you give me a hint on how to use the Joomdle (some function, whatever) for this? After I make the component/module/plugin I can provide for anyone.

Thanks
Last edit: 11 years 4 months ago by Otávio Melo.

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

More
11 years 4 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Add user in a course when created in Joomla
I don't fully understand your setup: are purchases done off-site? ie: can't you just use Joomdle shop integration for selling courses?

As for you actual question: courses<->groups.

We will be releasing a new component+plugin soon that lets you do that: map courses to groups, so you can set courses for each Joomla group.
This will be available for subscribers only (we are setting up our new site, where we will be offering some packages for members only).

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

  • Otávio Melo
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 4 months ago #3 by Otávio Melo
Replied by Otávio Melo on topic Add user in a course when created in Joomla
Hello Duran, thanks for answering!

I already have a sales system (Magento + Moodle) but in this case we are using another system that has an API in which will integrate with Joomla.

In fact, I think my question would be whether it would be possible to place a user in Moodle by Joomla (Joomdle), that is, would have some function I could call for help.

In addition to use in this case, I could also create a component to add users to a great deal on a course.

Any thoughts?

Thanks

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

More
11 years 4 months ago #4 by Chris
Without knowing exactly your process it is a little difficult to provide appropriate advise. From what I can tell you will have this environment:



What I do not know is
- if your Magento is syncronised with Moodle or just one way
- if you will syncronise Magento with the other system which integrates with Joomla
- what your other systems are and how they work / integrate with everything else
- which platform is the Master
- how you wish to hook everything up

Some issues that I can see
- You have an endless loop of syncronisation
- There is no Master which controls the user account / profile
- You will have a massive version control issue as each platform has their own release cycle and keeping them all technically syncronised will be challenging
Attachments:

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

  • Otávio Melo
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 4 months ago #5 by Otávio Melo
Replied by Otávio Melo on topic Add user in a course when created in Joomla
Excuse the mess. I will detail the most of now.



1) How the environment works today
- Joomla is the Master platform (users created in Joomla are created in Moodle by Joomdle and are also created in Magento)
- Users can not be created directly in Magento, they are always created in Joomla

2) How Magento is integrated with Moodle?
- It's just a tool that frees up a course in Moodle when it is bought in Magento (I put the course on the product ID).
- Since the user is the same for everyone, that is, "everything" is Joomla, there is no problem of user.

3) What is my problem
- I have the need to use another system for sales, an existing here in Brazil like eBay or Aliexpress. No, I can not make sales on Magento for this case.
- Let's assume that the customer make a purchase of a product on eBay (just as an example). Having confirmed the purchase, he access my website (Joomla), login to his eBay account within the Joomla (API) and I will check the details of his purchase. The verification is practically ready, just do not know how to release the courses in Moodle.

4) What is my need
As I have all the customer data, I need to sign them in Moodle's courses.
I wonder how I could use the Joomdle for this.

Thanks

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

More
11 years 4 months ago #6 by Antonio Durán
Replied by Antonio Durán on topic Add user in a course when created in Joomla
I guess you just need to call the joomdle enrol_user web service to ernol the user in the course after verification.

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