mitodl / mitxpro

BSD 3-Clause "New" or "Revised" License
12 stars 2 forks source link

feat: hide extra course runs if voucher is applied #2960

Closed asadali145 closed 4 months ago

asadali145 commented 4 months ago

What are the relevant tickets?

Followup on https://github.com/mitodl/mitxpro/pull/2940 due to this comment https://github.com/mitodl/mitxpro/pull/2954#issuecomment-2069371773

Description (What does it do?)

Hide extra course runs if checkout is made through a voucher. We had payment issues with Boeing when vouchers are used to enroll in different runs than the ones in the voucher. This PR hides extra runs from the checkout page when checkout is made through a voucher.

Screenshots (if appropriate):

With Voucher:

Screenshot 2024-04-25 at 12 13 07 PM

Without Voucher:

Screenshot 2024-04-25 at 12 13 30 PM

How can this be tested?