Add UI help text re: case-insensitivity for coupon code matching

Created on 13 June 2024, 4 months ago
Updated 2 July 2024, 3 months ago

Due to default behavior of MySQL, coupon code matching is case-insensitive, meaning a custom who inputs the coupon code abcd would validate against the coupon code AbCd (were that how the administrator inputted it). When manually creating coupon codes, though, we don't provide any indication that this is how the system works.

Rather than trying to change the behavior, we can simply do two things:

  1. Add help text to the Coupon code textfield reading, "Coupon code matching is case-insensitive."
  2. When the form is submitted, if the coupon code "matches" to another code with different casing, e.g., email vs. EMAIL, the message displayed should read, "Coupon codes must be unique. NEW CODE cannot be used because it would match EXISTING CODE."
📌 Task
Status

Fixed

Version

2.0

Component

Promotions

Created by

🇺🇸United States rszrama

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024