I wanted to set up a system that would work somewhat like a grace period, and to do that I need students to be able to enroll into the course twice, with different methods each time.
So for example, once a student has self-enrolled into the course, then they should be able to enroll again using paypal or some other enrollment method. When I set this sort of system up, moodle automatically directs the student back into the course they are already enrolled in when they try to go to the enrollment url.
I imagine there is a piece of code somewhere saying that students that are already enrolled into the course should be redirected back into the course, bypassing the second enrollment page. Does anyone have any ideas of where I could find this/what I should do?