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: 12345With Prefix
Template: CUST-{id} Result: CUST-12345Year-Based
Template: {year}-{id} Result: 2024-12345Store-Specific
Template: {store}-{id} Result: DE-12345Complex Format
Template: {store}{year}{id} Result: DE202412345Padding
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
