v1.6-v1.7 Prestashop Custom Order Reference

Root

System Boss
Staff member
Big Boss
Joined
Jun 1, 2018
Messages
1,140
Reaction score
18,489
Points
113
NullCash
73,701


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
v 1.1.0
  • 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
 

Attachments

  • customorderreference_1.2.0.zip
    5.9 KB · Views: 19

Parek

Well-known member
Diamond
Elite
XNullUser
Joined
Jan 16, 2020
Messages
105
Reaction score
278
Points
63
NullCash
652
super, great module.
 

deltas

Well-known member
Master
Diamond
Elite
Joined
Jan 13, 2020
Messages
786
Reaction score
651
Points
93
NullCash
1,396
nice. very useful. i'll check it :) thanks
 

JSSSX

Active member
Elite
XNullUser
Joined
Jan 25, 2020
Messages
264
Reaction score
210
Points
43
NullCash
196
super, great module.
 

jarom

Well-known member
Master
Diamond
Elite
Joined
Jan 19, 2020
Messages
940
Reaction score
2,449
Points
93
NullCash
17,409
Great module, thank you
 

fima

Member
XNullUser
Joined
Feb 15, 2022
Messages
117
Reaction score
1
Points
18
NullCash
7
You can choose one of the following generation format:
 
Top