v1.6-v1.7 Prestashop Custom Order Reference

Root

System Boss
Staff member
Big Boss
Joined
Jun 1, 2018
Messages
1,137
Reaction score
18,394
Points
113
NullCash
77,430


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
277
Points
63
NullCash
678
super, great module.
 

deltas

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

JSSSX

Active member
Elite
XNullUser
Joined
Jan 25, 2020
Messages
261
Reaction score
209
Points
43
NullCash
218
super, great module.
 

jarom

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

fima

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