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.
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:
Without Voucher:
How can this be tested?
.env
course id = AMxB
andtitle = Manufacturing for Innovative Design and Production
/ecommerce/admin/coupons
as an admin user and choose the following:boeing/upload/
and upload the file which is located atvoucher/.test/domestic_voucher.pdf
is_voucher_applied=True&
from the URL. Now you should see the 2nd run as well.