Multiple Virtuemart Products, One Moodle Course

6 years 3 days ago
michaelhermary
Posts: 56
More
Multiple Virtuemart Products, One Moodle Course #11
I remember why it's much better to have the VM SKU linked with the Moodle 'Course ID Number'. We start selling our VM products long before we actually create the Moodle course (i.e. before we know the Moodle 'Course ID'), so by using the 'Course ID Number' we have control over what it is and can therefore enter it as the SKU during VM product creation. Make sense?

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

6 years 2 days ago
Antonio Durán
Posts: 7252
More
Multiple Virtuemart Products, One Moodle Course #12
Well, we were talking about different things: I talked about using a different product field instead of SKU to store Moodle course ID.
You talk about changing the Moodle ID to use.

We cannot change Moodle ID to use "Course ID number" becasue everything in Joomdle is designed to use database ID to indentify courses.

I can't see any advantages setting the SKU to "Course ID number" as if the course is not set up yet, you cannot enrol to it, even if you sell it.
> We start selling our VM products long before we actually create the Moodle course
You can still to this: just set up product in VM, and when you create Moodle course, go and edit it and manually set SKU to the course ID.

However, if you sell courses before creating the course: how are enrolments made? I mean, you would need to somehow "trigger" enrolments for old purchases once course is available, right?

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

6 years 2 days ago
michaelhermary
Posts: 56
More
Multiple Virtuemart Products, One Moodle Course #13

However, if you sell courses before creating the course: how are enrolments made? I mean, you would need to somehow "trigger" enrolments for old purchases once course is available, right?


Right, so is there a way to automatically trigger enrolments for old purchases? That's the issue here.

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

6 years 2 days ago
Antonio Durán
Posts: 7252
More
Multiple Virtuemart Products, One Moodle Course #14
Right now, there isn't.

But I guess it is something that could be useful for other people too, so I guess we could add a new button to the shop view: "Trigger enrolments". This would need to go through all completed orders which contain selected courses, and trigger enrolment for them. Does this sound ok for you?
We would need to modify all shop plugins to include the new action.

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

6 years 2 days ago
michaelhermary
Posts: 56
More
Multiple Virtuemart Products, One Moodle Course #15
Yes, it sounds like a worthwhile feature to me.

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

6 years 2 days ago
Antonio Durán
Posts: 7252
More
Multiple Virtuemart Products, One Moodle Course #16
Ok. I have added it to my TODO list, and will work on it for next release. I will let you know once I have some packages ready so you can test.

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

6 years 6 hours ago
michaelhermary
Posts: 56
More
Multiple Virtuemart Products, One Moodle Course #17
Hey Antonio, any estimate as to when this might be ready? I just need to figure out if I need to create another solution for enrolments in the meantime. Thanks...

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

5 years 11 months ago
Antonio Durán
Posts: 7252
More
Multiple Virtuemart Products, One Moodle Course #18
Well, I am away until mid-next week, so my best estimate would be in around 10 days for the first packages to be ready, if all goes well. When do you need it?

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

5 years 11 months ago
michaelhermary
Posts: 56
More
Multiple Virtuemart Products, One Moodle Course #19
I now have an alternative solution that seems to be working, so it looks like I'm not in a big rush thanks.

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