This module aims to easily create custom order reference. It can be customized using variables from the following PrestaShop Objects:
- Order =>
order->id
- Cart =>
cart->id
- Shop =>
shop->id
- Delivery =>
delivery_address->id
- Invoice =>
invoice_address->id
- Customer =>
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).