-
Notifications
You must be signed in to change notification settings - Fork 85
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
✨(courses) add offer and price fields to courseRun #2549
base: master
Are you sure you want to change the base?
✨(courses) add offer and price fields to courseRun #2549
Conversation
fbc3e6e
to
688a379
Compare
756e3cd
to
1af7ddb
Compare
@Tiago-Salles you should include the |
@Tiago-Salles review the commit message. The `(backend) is incorrect. You have changed front and back end code. |
3d876b5
to
c300f5b
Compare
- Add price fields to CourseRun - Show price fields on the screen
c300f5b
to
dc05c7c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ✔️
@jbpenrath Can someone from FUN review this PR? |
In quick words this PR includes:
CourseRun
Purpose
We at NAU identified the necessity of managing prices using Richie in our use case. There are two prices, course price and certificate price.
Aimed to this functionality we created resources for the both course run information input points, which are the sync api and the admin course management. With these resources the companies using Richie, can handle price information with or without third-party components for their instances.
The prices are accompained with their corresponding
offer
following the Google recomendation.These information are configured at the
CourseRun
level, and can variate its presentation on the screen with a easy business logic. If there is offer, show the offer message and if price is not null, show it as well. If there is no offer configured then the fields are hidden, even having price set up.Companies that believe it is better in terms of clear communication to show price in all cases, even with a
Free
offer (0.00), it can be done by setting the price as 0. That is, it will always show the price if set up, but in all cases respecting the condition either offer configured or not, otherwise the field is hidden. The offer is always the main information, even if is set up asPaid
and price equals 0.00.Here are the available offer options, and for each of them the message used to communicate the user.
Offer messages for course enrollment
Paid - The course content is paid.
Free - The course content is free.
Partially Free - The course content is free.
Subscription - Subscribe to access the course content.
Offer messages for certification process
Paid - The certification process is paid.
Free - The certification process is free.
Subscription - The certification process is offered through subscription.
Presentation
With both offers as
Paid
it is possible to get straight to understand of how the screen will display these information. According to the above listed options, the correspoding message will be shown, and if there is price, it will follow in the next line.And with a null offer, the entire price section ( title, message and price ) is hidden, even with a price configured being different from null.
Available on the admin
Companies don't use the sync resource to create or update
CourseRun
can manage their course editions offers and prices using the admin management in the course page edition mode.Options to choose
To set an offer, there are dropdown components with the corresponding choices.
Course offer
Certification offer