Shop / e-Commerce Integration

Enroll user in group in joomla that will be map with group in moodle

  • Lionel Ray
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 2 months ago - 4 years 2 months ago #1 by Lionel Ray
Hi,

So my problem is this one :

I can in J2store enroll buyers in a Joomla group when they purchase a course on the store.

What I would like is that this group will be related to a group in moodle that limite the access of my course (which is something you can do in moodle).

The probleme is that with the joomdle course componant i've got this issue :

core.js?0ba57859e6395e2b5f74bf19a8722f62:1 Uncaught TypeError: Cannot read properties of null (reading 'task')
at Object.e.submitform (core.js?0ba57859e6395e2b5f74bf19a8722f62:1:213)
at Object.e.submitbutton (core.js?0ba57859e6395e2b5f74bf19a8722f62:1:481)
at HTMLButtonElement.onclick (index.php?option=com_coursegroups&view=item&layout=edit:879:109)

when I want to save my configuration the error appear in the console.


Thanks to anyone answering my problem.
Last edit: 4 years 2 months ago by Lionel Ray.

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

More
4 years 2 months ago #2 by Antonio Durán
Hi.

I am not sure about what you are doing and what you are trying to accomplish.

I see you are using com_coursegroups.
This component+plugin lets you enrol user to courses based on Joomla groups. But it has nothing to do with Moodle groups, so I am not sure if this is of any use to you.

> What I would like is that this group will be related to a group in moodle that limite the access of my course (which is something you can do in moodle).

Do you mean adding the user to a particular group in the course?

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

  • Lionel Ray
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 2 months ago #3 by Lionel Ray
Hi !

First thanks for the answer.

Well I probably did not explain myself really well on that post sorry for that.


The situation is this one :

> We gonna have a full course online on our Moodle.
> We would like to divide this course in multiple small courses that we will sell to our customers.
> To acheive that division we are going to put our users in moodle groups with restricted access depending on the part of the course they buy.
> On J2Store I saw that I can put people in a Joomla group depending on the product they've just bought.
> I would like that those Joomla Group be sync with Moodle so that when someone buy a product with restricted access, he will be sort automatically

Or maybe there is an other way to acheive what I'm trying to do.

So to answer you final question : Kind of yes, I'd like to add user to a particular group in the course but I would like to do so depending of what they are buying.

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

More
4 years 2 months ago #4 by Antonio Durán
Hi.

Thanks for the info, I think I understand it now.

Unfortunately, you cannot do what you want right now, as you would need a new plugin for J2Store (assuming it is possible to develop it)

What you would need is something like this, that we have for Hikashop:
www.joomdle.com/wiki/Hikashop_Groups

You define some options in the product, and when you buy it you select one option. Then, that option is mapped to Moodle groups, to put users in the right group when they buy a course.

If you are interested in sponsoring the development of such a plugin, please write to antonio at joomdle to discuss it further.

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

  • Lionel Ray
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 2 months ago #5 by Lionel Ray
Hi !

Thanks Antonio, I will have a look on Hikashop then.

Have a good one !

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