ID Template Formatting
Customize the format of generated customer IDs.
Template Variables
| Variable | Description | Example |
|---|---|---|
{id} |
Sequential number | 12345 |
{year} |
Current year | 2024 |
{month} |
Current month | 01 |
{store} |
Store code | DE |
{group} |
Customer group code | WS |
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:
| Setting | Value | Result |
|---|---|---|
| Pad Length | 6 | 012345 |
| Pad Character | 0 | 012345 |
Configuration
Stores > Config > Customers > Customer ID > Format
- Template: Format string
- Pad Length: Minimum digits
- Pad Character: Fill character