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.
This pull request tweaks the 'Coupon Code' field when creating/editing coupons, enforcing the following constraints:
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.