This module override Order class to change order reference to numeric (from order id) with optionally prefix and separator like:
PFX-20256
This is simple override of classes/order/Order.php changing the way of generating reference number in orders.
No need to change anything in the files, just install the module and activate override in module settings. After activating the override, the next order placed in your store will have the format as in the preview available in the module settings.
This module is written for Prestashop 1.7.x
Download:
- Change Order Index v.1.0 - relase zip.
or clone to /modules directory of your shop:
git clone https://github.com/RyzuOPs/Change-Order-Index
You can install module through manager in the backoffice:
- Login to backoffice
- Go to:
Improve -> Module Manager -> Upload a module
- Configure module
./bin/console prestashop:module install changeorderindex
Override is disabled by default after installation. To override work properly turn it on in the module settings.
You can use prefix and separator.