Add code formatting options to gift card types

Created on 11 November 2020, over 4 years ago
Updated 6 August 2024, 11 months ago

Problem/Motivation

Currently generated gift card codes use a hard coded formatting (lowercase). Store owners each have their own requirements on the format of codes. A store owner needs to manually create codes if they want codes to be UPPERCASE or lowercase, if they want to add spaces or dashes between groups of characters, and other formatting requirements.

Proposed resolution

Add code formatting options to gift card types to use during code generation and validation.

  • A choice between case: lower case, mixed case, or upper case
  • Which character sets to use: Letters & numbers, letters only, numbers only
  • Insert a character every x number of characters (eg: HDID-SLQP-SKFI-MZXA or HDID SLQP SKFI MZXA)
  • Append or Prepend a string
✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rhovland Oregon

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024