v1.6-v1.7 Prestashop Custom Order Reference

Root

System Boss
Staff member
Big Boss
Joined
Jun 1, 2018
Messages
1,141
Reaction score
18,576
Points
113
NullCash
71,147


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

deltas

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

JSSSX

Active member
Elite
XNullUser
Joined
Jan 25, 2020
Messages
294
Reaction score
211
Points
43
NullCash
102
super, great module.
 

jarom

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

fima

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