Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PAE-845 Add custom prerequisites functionality to improve learner experience #189

Open
wants to merge 3 commits into
base: open-release/juniper.stage
Choose a base branch
from

Conversation

anfbermudezme
Copy link
Contributor

@anfbermudezme anfbermudezme commented Nov 22, 2021

This PR is on hold down due to business decisions

To improve the learner experience, Following the logic:

Selection_150

For this, add backend functionality to sort courses_requirements_not_met variable if the learner is enrolled and if the learnor is not enrolled find the sku for verified mode of the course requirement, to redirect the link:

Selection_154

For this it's necessary pull the PR's https://github.com/Pearson-Advance/pearson-core/pull/25 and Pearson-Advance/edx-platform#59.

Also in the course about view for the course with prerequisites the links have the same behavior of the learner dashboard, that means, About course if the learner is enrolled and basket sku if the learner is not enrolled.

Selection_182

@anfbermudezme anfbermudezme changed the title Pearson/pae 845 PAE-845 Add custom prerequisites functionality to improve learner experience Nov 22, 2021
@anfbermudezme anfbermudezme changed the base branch from pearson-release/juniper.stage to open-release/juniper.stage November 22, 2021 15:43
@anfbermudezme anfbermudezme marked this pull request as ready for review November 23, 2021 23:57
@Jacatove
Copy link

There is another page where you have to extend this feature in order to be consistent. Please take a look at course_about.html and check the about course page lms-site/courses/{id-course-with-prerequisite}/about. So here, It will still be behaving as normal. @anfbermudezme

image

Comment on lines 502 to 504
<div class="prerequisites">
You must successfully complete <a href="${ecommerce_payment_page}?sku=${student_not_enrollment_in_requirement}">${Text(_("{prc_display}")).format(
prc_display=course_requirements['courses'][0]['display'],)}</a> before you begin this course.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the same syntax as the existing code. @anfbermudezme

Comment on lines +503 to +512
<p class="tip">
${Text(_("You must successfully complete {link_start}{prc_display}{link_end} before you begin this course.")).format(
link_start=HTML('<a href="{ecommerce_payment_page}?sku={student_not_enrollment_in_requirement}">').format(
ecommerce_payment_page=ecommerce_payment_page,
student_not_enrollment_in_requirement=student_not_enrollment_in_requirement,
),
link_end=HTML('</a>'),
prc_display=course_requirements['courses'][0]['display'],
)}
</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the same syntax as the existing code. @anfbermudezme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants