Add a prefix or suffix to my order numbers
You can add a prefix or suffix to the order numbers on your Managed WordPress Ecommerce site. Prefixes and suffixes can be static values or dynamic dates. This can be helpful for categorizing your orders across multiple shops or based on the date placed.
- Sign in to WordPress.
- Navigate to WooCommerce > Settings > Orders.
- Enter an optional prefix or suffix in the available fields using the placeholder value listed in the table below.
- Enter an starting order number. This can be formatted as a numerical starting number (such as 4) or with leading zeros (such as 0004) to specify a length.
Placeholder Value | Output |
---|---|
{D} | Day of the month without leading zeros |
{DD} | Day of the month, 2 digits with leading zeros |
{M} | Numeric representation of a month, without leading zeros |
{MM} | Numeric representation of a month, with leading zeros |
{YY} | A two digit representation of a year |
{YYYY} | A full numeric representation of a year, 4 digits |
{H} | 24-hour format of an hour without leading zeros |
{HH} | 24-hour format of an hour with leading zeros |
{N} | Minutes with leading zeros |
{S} | Seconds, with leading zero |