Hello,
When a student wants to subscribe to a new course that can be payed via PayPal, he/she will see a -by Moodle- generated button that opens the PayPal Login web page in the same browser window.
This is annoying for students, because then they loose the course page they were looking at a second ago, containing all the details of the course concerned.
The student needs these essential course details to process the PayPal payment properly.
So now the student is blinded by Moodle/PHP.
Can the web developer who programmed the PayPal button, please build in a mechanism such as HTML 'target ="_blank"' in order to open the PayPal web page in a new browser tab/window?
This way, the student can have a peak at the course page in none browser window, and fill in the right data in another window.
Friendly Regards,
Rolf Cper
Moodle 3.0
Go to <your moodle>/enrol/paypal and open the file named as "enrol.html". Write target="_blank" in form tag.
Previous html : <form action="<?php echo $paypalurl ?>" method="post">
After add target="_blank" Html is :
<form target="_blank" action="<?php echo $paypalurl ?>" method="post">
Hope it helps.
Regards,
Purnendu
Thank you, Purnendu.
Your solution works fine.
Friendly regards,
Rolf