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

Tweak 'Coupon Code' field #889

Merged
merged 1 commit into from
Jul 3, 2023
Merged

Conversation

duncanmcclean
Copy link
Owner

This pull request tweaks the 'Coupon Code' field when creating/editing coupons, enforcing the following constraints:

  • No spaces
  • Should be uppercase

To achieve this, I've created a new 'Coupon Code' fieldtype which extends the existing Text fieldtype just with some extra classes & ensuring codes are made uppercase when saved.

@duncanmcclean duncanmcclean merged commit 6b81f1f into 5.x Jul 3, 2023
5 checks passed
@duncanmcclean duncanmcclean deleted the feature/new-coupon-code-fieldtype branch July 3, 2023 11:38
@github-actions
Copy link

github-actions bot commented Jul 3, 2023

Released as part of v5.3.0.

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.

None yet

1 participant