Enrolment duration in Paypal plugin is not working as expected

Enrolment duration in Paypal plugin is not working as expected

by dinesh n.poojary -
Number of replies: 4

Hi All,


I have set Enrolment duration = 1 Days but the enrollment will be valid for many days. How can I restrict it properly?


paypal enrolment duration

Average of ratings: -
In reply to dinesh n.poojary

Re: Enrolment duration in Paypal plugin is not working as expected

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hello,

I am confused about why you set the enrolment duration to 1 day if you want it to be valid for many days? Please can you explain a bit more.

PS I am moving your post to the Enrolment forum where you'll most likely receive help.

In reply to Helen Foster

Re: Enrolment duration in Paypal plugin is not working as expected

by dinesh n.poojary -
Thanks @Helen,

I wanted to restrict the enrollment for only one day but after a day also lesson is visible for the student. How can i restrict?
In reply to dinesh n.poojary

Re: Enrolment duration in Paypal plugin is not working as expected

by Michael Milette -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Hi Dinesh,

The enrollment duration option controls how long people have to sign up for the course, not how long they have to complete the course.

If you want them to only have one day to complete the course, you will need to set an end-date of the course to one day after it starts.

If you are using Moodle 3.8 or later, there is also an experimental option you can turn on which will enable an additional option to show up in your course settings. The new option will enable you to set the end date relative to a rolling enrollment date. I suspect that this may be what you want. For more information on this feature, see:
https://docs.moodle.org/en/Course_relative_dates

Hope you find something useful in all of this.

Best regards,

Michael
In reply to Michael Milette

Re: Enrolment duration in Paypal plugin is not working as expected

by Randy Thornton -
Picture of Documentation writers
Actually, it is the opposite.

The enrolment duration is the length of time that the user is allowed to use the course calculated from the day they first enroled. If I sign up today April 15 and the enrolment duration is 30 days, I will have until May 15th to finish. It is the duration of the individual enrolment for a particular user. Someone else sings up on April 16, they will have until May 16th to use it.

So if I set the enrolment duration to 1 day, then they will have 1 say to work in the course and on day 2 will no longer be enroled. (What happens exactly at that point depends on what setting the "Enrolment expiry action" in the plugin admin settings: the default is to disable the user's enrolment.)

To control the interval of time that users are allowed to enrol in the course, you use the Start date and End date. That is the interval of time in which new enrolment can happen. If there's an End date, no users can enrol after that date, but users in the course can continue working until they reach the end of their own particular enrolment duration.

The PayPal plugin in 3.10 does not yet support relative dates, unfortunately.

Therefore in each instance of the PayPal enrolment in a course, you are forced to choose fixed dates when the course will be open and then closed to new enrolments, if you have any at all.  There's no way at the moment to set the enrolment window to relative dates or amount of days.