Creating Custom Order Numbers With Variable Using Dynamic Fields
To create a custom order number with variables using dynamic fields in WooCommerce, you can use the placeholders or tags available in the “Order Number Format.” Here’s how:
- Go to WooCommerce > Custom Order Number > Order Number Settings and scroll down to Order Number Format field.
- Here, you can use dynamic fields by inserting placeholders within curly braces {}. For example, you can use “{COUNTER}” to include the counter value and “{WEEK}” to include the week number in your order number format.
- These placeholders will be automatically replaced with their corresponding values when an order is generated. For example, if you set the format as ORDER-{COUNTER}/{WEEK}, the actual order number for a specific order will be something like ORDER-10/45.
- To understand these dynamic fields better, you can refer to the Description of Tags in WooCommerce > Custom Order Number > Description of Tags. This table provides details about available tags, helping you create unique and customized order numbers for your WooCommerce store.
