This module aims to easily create custom order reference. It can be customized using variables from the following PrestaShop Objects:
order->id
cart->id
shop->id
delivery_address->id
invoice_address->id
customer->name
In the configuration page you can define a format. Let's take the example format:
Config value: {cart->id:%d}
Output: 5424
Config value: {shop->name:%1.1s:capitalize}{order->id:%06d}
Output: S003638
Config value: {20}{order->id:%06d}
Output: 20000161
The random example is shown once you save the configuration.
Every format needs a modifier, like %d
(digit) and %s
(string).