Course Expiration

sharath92
Forums
Hello, Is there any way that we could have a course expiration functionality for the course in our site. We need to implement a course function where the course needs to expire 3 months from the purchase of the course by the user. Please elaborate
axel

Hi

Hi

Yes there is an additional Opigno app you can install: "Opigno User Expiration App"

You can refer to the user manual on pages 77 and 78 for more details: https://www.opigno.org/150227_Opigno_User-Manual.pdf

Best regards,

Profile picture for user James Aparicio
James Aparicio

Hi sharath92,

Hi sharath92,

The is a module in the apps store, called user expiration. It creates a field in the course, where you can set the duration (3 months for example).

It also creates a date membership field that stores the date of the membership for each user to a group.

The module also executes a cron (a process that runs in the backgroud that is executed every x hours) that checks all user memberships, and if the (membership date + 3months < today) blocks the user.

This is what our app already does.

 

Best regards

sharath92

Thanks axel and James

How do I go about testing this though? I had given the user expiration amount as 1 and type as day but still the course is accessible to the user. Please let me know if there is any workaround that can be followed for testing this functionality so that I can be sure that it works. Thanks, Sharath
Profile picture for user James Aparicio
James Aparicio

Hi sharath92,

Hi sharath92,

I just released a new version of the module

You can download it from here and replace it.

https://www.drupal.org/project/opigno_user_expiration_app

 

To test you can edit the individual user membership and set the expiration date to a past date. Then run the cron. That user membership should then be bloked.

Best regards

sharath92

Hello James

Will the course not be available from the users list of purchased courses? (ie) will it not be present in the My Courses listing? I have used the latest version of the module, ran the cron and still getting the course in the my courses listing.
Profile picture for user James Aparicio
James Aparicio

Hi sharath92,

Hi sharath92,

Yes, it will not display because it blocks the user membership, it does not remove it. For that you have to remove the membership instead of blocking it.

Best regards

sharath92

Hi James

If I want to remove the membership and make him re purchase it, I should probably be doing that in a custom way right?