It has been asked before but I would like to bring it under attention again...
Is it possible to give the Order ID a different value then just '1' of '15' ? I myself would be quite interested if the Order ID is generated from the date (i.e. 20050702001 for the first order on July the 2nd 2005)
Anyone has any idea how to do this? I can send you a lollypop if you'd help me out on this one :-)
Thank you in advance!
Zandmanneke
Digital Backups
2005-07-04 08:22
I agree, this would be a much better numbering method for orders, so customers don't know that they are only the 3 or 5th order ever... I am going to look at this, but I am no expert. Will post back if I have any good results
Bryan
Digital Backups
2005-07-04 08:52
OK, there might be a better solution, but this is what I did.
In the \templates\default\orders_print.tpl file around line 8 I changed
$iOrder
$aOrder[sDate]:$iOrder
And now my Order id looks like this "2005-07-04 01:34:29:2" instead or "2"
I also am adding $aOrder[sDate]:$iOrder to the PayPal pluging as part of "orders_saved.tpl" so the same order number is listed on the PayPal checkout, although I have not tested this yet.
It changes how it appears on the email invoice as well as the Order Print option in the check out. At least enough to make it more difficult for a customer to know how many orders you have taken.
Hope this helps
Bryan
Bryan
Nidurhaf
2005-07-04 14:59
Is it possible to make an ID after the year, and not whole [date]? So that a customer's order look like f.ex. 200510, where last 10 digits are actual order no.
But the best solution (for me) would probably be generating a random ID number in every order.
velocityhead
2006-10-28 04:54
Does anyone know how to do this for version 1.4? The /templates/orders_print.tpl/ file is different.
FYI I know very little about php or its functions, so I'm assuming this is a very simple change that I need to make to this code:
<!-- BEGIN SHOW --> <h2>$lang[Order_id] $aData[iOrder]</h2> <table cellspacing="0" id="order_delivery">