Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Re-add coupon / discount code functionality #63211

Open
vdavid opened this issue Jun 11, 2024 · 0 comments
Open

Re-add coupon / discount code functionality #63211

vdavid opened this issue Jun 11, 2024 · 0 comments

Comments

@vdavid
Copy link
Contributor

vdavid commented Jun 11, 2024

Context:
For the June release, we decided we'd momentarily let go of the "coupon code" functionality in the checkout process, meaning that when we roll out the Dotcom-based front end, users won't have a way to apply coupon codes to their purchases (except for making manual API calls, which is possible but not worthwhile as we don't have coupons for the general public anyway).

The back end is there, so it'd be easy to add the coupon code field, but then we'd need to display the discount and recalculate the total with a "preview" back-end call that we'd like to avoid for now. So instead, we decided to just remove this functionality.

Problem: We eventually want the coupon code functionality again to do promos, hand out to partners, etc.

Solution:
Display the coupon code option based on this figma, only if the showCouponCodeAtCheckout param to the checkout page is defined. Verify it on the back end and apply it to the transaction.

Note: @chrsmith's comment here in the figma might help, too.

@vdavid vdavid changed the title Re-add coupon code functionality Re-add coupon / discount code functionality Jun 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant