Pages:

Using the date as the order ID?

justplumducky

No avatar

2006-11-19 04:51


Maybe I should just find the files he mentions, in my 1.4, and edit them accordingly...see what happens? It wouldn't hurt right, as long as I can go back and remove what I added, if it doesn't work? Wrong? :)

JustPlumDucky

rbrad

No avatar

2006-12-05 22:18

I got this to work based on boffa's idea but it works with 2.0.
In the core/orders-ff.php file look for the ' function dbThrowOrderIdTemp( )' it should be near the top.

In that function you will see: $iOrder = throwLastId( DB_ORDERS, 0 ) + 1;
Replace that with the example below or just add the New lines

$datetimemark = date('Ymd');//New line
$iOrder = throwLastId( DB_ORDERS, 0 ) + 1;
$iOrder = "$datetimemark.$iOrder";//New Line

:)

Pages:
Back to top
about us | contact