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

[4.7] Add require coupon code lightswitch to discounts #3660

Open
wants to merge 9 commits into
base: 4.7
Choose a base branch
from

Conversation

nfourtythree
Copy link
Contributor

Description

Related issues

#3132

This adds extra protection against discounts being accidentally applied when removing all coupon codes
[ci skip]
@nfourtythree nfourtythree self-assigned this Sep 6, 2024
@nfourtythree nfourtythree requested a review from a team as a code owner September 6, 2024 11:35
Copy link

linear bot commented Sep 6, 2024

@lukeholder lukeholder changed the title Add require coupon code lightswitch to discounts [4.7] Add require coupon code lightswitch to discounts Sep 9, 2024
@nfourtythree
Copy link
Contributor Author

@AugustMiller would love to get your input on the wording of "Require Coupon Code". Toyed with the idea of "Requires" but then felt like it should be "Requires a Coupon Code" which seems lengthier.

The idea behind the PR being this is now an extra fail safe that you explicitly say whether the discount needs a coupon code to apply rather than simply an empty coupons table. Which causes issue if someone was to accidentally delete all the codes.

CleanShot 2024-09-10 at 08 04 22

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.

1 participant