This module allows you changing default PrestaShop Order Reference format.
Features
You can choose one of the following generation format:
- Default PrestaShop – If You want to restore to default
- Number-Day-Month-Year [incrementing number within a day] – Useful if You want to count the number of orders within a day and include it in the reference
- Number-Month-Year [incrementing number within a month] – Useful if You want to count the number of orders within a month and include it in the reference
- Number-Year [incrementing number within a year] – Useful if You want to count the number of orders within a year and include it in the reference
- Random number – If You want numbers instead letters
- Incrementing number – If You want incrementing numbers instead letters
Remember that new choice won’t affect existing orders. It will take effect right after save for all new orders.
Changelog
v 1.2.0
- Removed override of PaymentModule.php and all logic now is located in hook actionValidateOrder
- Separator is now only “-†(for compatibility reasons)
- Code refactor
- Compatibility with 1.7
- New generation method: Number-Day-Month-Year
- Fixed error occuring when reference was too long (by increasing this field length to 26)
- Removed required * symbol from separator (as it’s not required, just recommended)
- Removed error modal in module configuration page