Community Add-Ons
| Maintainers: | kplace |
Unique Order Number
for osCommerce Online Merchant v2.3
I take no credit for this. I just made a small change to add a dash in between the date and the other information. I also made a small so it works with V2.3
This contribution will create a unique Order Number, which is basically based on php's date() function.
The order number will consist of: Month, Year, Hour, Minute, Second. Basically:
date("mdY-His") = mmddyyyy-hhmmss (14 DIGITS)
You could abreviate the Year to "y" which will give mmddyyhhmmss (12 DIGITS)
** These are unique numbers that cannot be duplicated since time always goes forward. In addition, based on the order number, you can tell exactly when the order was placed!**
Legend:
Download
Report
Adding the dash to the date is causing problems. Remove the dash and this works perfect.
Change
date("mdY-His") = mmddyyyyhhmmss (14 DIGITS)
TO
date("mdYHis") = mmddyyyyhhmmss (14 DIGITS)
You could abreviate the Year to "y" which will give mmddyyhhmmss (12 DIGITS)
**** These are unique numbers that cannot be duplicated since time always goes forward.****
+-------------------------------------------------------------------------------------------+
and change
date("dmy-His") = ddmmyyhhmmss (12 Digits)
to
date("dmyHis") = ddmmyyhhmmss (12 Digits)
