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.