ID Template Formatting

Customize the format of generated customer IDs.

Template Variables

VariableDescriptionExample
{id}Sequential number12345
{year}Current year2024
{month}Current month01
{store}Store codeDE
{group}Customer group codeWS

Example Templates

Simple Numeric

Template: {id} Result: 12345

With Prefix

Template: CUST-{id} Result: CUST-12345

Year-Based

Template: {year}-{id} Result: 2024-12345

Store-Specific

Template: {store}-{id} Result: DE-12345

Complex Format

Template: {store}{year}{id} Result: DE202412345

Padding

Configure number padding:

SettingValueResult
Pad Length6012345
Pad Character0012345

Configuration

Stores >Config > Customers > Customer ID > Format

  • Template: Format string
  • Pad Length: Minimum digits
  • Pad Character: Fill character

Found an issue with this documentation? Let us know