Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2361

Use course default enrolment period with webservice.

$
0
0
by Rafael Samaha Gritti.  

 Hello Everyone!

 I'm using Myddleware to connect Prestashop to Moodle, and it uses the enrol_manual_enrol_users function to enrol users to courses they buy.


 But I'm having a issue that when users are enrolled this way the enrollment end date is not set as the manual enrollment plugin defines.

 When I use the manual enrollment method in the website, without being by the webservice, the enrollment end date is correctly set.

 I already set the start date by the current date in the webservice, but the end date was not automatically set. 

Creating a specific rule for each course in the webservice by adding the current timestamp with a number so the period is right can maybe overload my server.

 Is there anything I can do to automatically set the end date with the period set in the manual enrollment options in each course?


 Thanks for your help.


Viewing all articles
Browse latest Browse all 2361

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>