If anyone is interested in the code to have both PayPal and an enrollment key option for a course (see image) let me know.
Chardelle
Happy New Year Chardelle!
I would be interested in this. Is it developed already? Can I make a contribution?
Ralph
Hi Ralph,
I just made the code changes since I might need this. You just need to replace the enrol/paypal/enrol.php file, add a new file, and add a new line to your lang/moodle.php file. (See the read me file included in the zip) I haven't tested it by actually purchasing a course yet--but it should be fine.
The page shown above will come up if you have enrollment set to PayPal, and have a course with settings that include both an enrollment key and a cost.
Please note: I have only tested this with version 1.4.3.
Update:
Oops, I got in a rush, and I think I put the wrong enrol.php file in the zip (why do I have two folders named "test"?).
So, please use these files here.
Thanks Chardelle!
You are becoming some Renaissance woman personal coach, Phd, code hacker!!!
RalphIs it possible that the enrollment key is asked for prior to being asked for payment? If a student pays for a course that a Teacher wishes them to not register for then a refund would have to be made.
Thanks for your help!
Eric
Sorry, I am new to this great feature. Need some help:
Unable to locate the file to add the line as instructor by the read text, please help:
Add this line to your moodle/lang/your lang/moodle.php file (note you can change this wording to anything).
$string['paymentkey'] = 'If you already have the enrollment key for this course, please enter it below:';
Thanks
Oh thanks. Will learn it.
In the meantime, can you advise when to do the changes for version 1.4?
Unable to locate the file to add the line as instructor by the read text, please help:
Add this line to your moodle/lang/your lang/moodle.php file (note you can change this wording to anything).
$string['paymentkey'] = 'If you already have the enrollment key for this course, please enter it below:';
Cut and paste BUT still not showing? please advise.
Thanks.
Hi All,
After search the forum for 2 days, I finally found how the interface show look like when the course is configured to be paid by Paypal. THe problem now is I am not able to get the interface to appear. Now the course cannot be access withou paying and yet the payment interface did not appear. I have installed moodle 1.5.3. My url is http://members.business-excel-training-course.com/. Appreciate if you could help me on this.
Thanks in advance.
Best regards.
Jsaon Khoo.