Re: How to hide "Course B" to students who haven't completed "Course A"?
Hi David - If you don't mind keeping Course B visible on your site while restricting enrollment to students who have completed Course A, check out the Course Completed Enrolment plugin.
I don't think it's straightforward to keep Course B hidden from students because of the following reasons:
Even if you don't publicize all the available courses on your site**, the link your-Moodle-URL/course/index.php usually reveals the list of all courses on your site to anyone. It's unlikely that a typical student would know about this link, but whether this lack of awareness is sufficient is for you to decide.
There is an option to make a course hidden in the course settings, but this will make it invisible to anyone with the Student role.
** Check the Site Home setting and Site Home Items When Logged In setting in Site Administration -> General -> Site Home -> Site Home Settings
I use the "Restriction by other course completion"
https://moodle.org/plugins/availability_othercompleted
So I can use this plugin to prevent them from accessing the first activity in the next course until the have "completed" that previous course.