Jimster_s Posted November 7, 2005 Share Posted November 7, 2005 this is sort of 2 questoins. how do you show the order number so you can see it in admin>orders and also on the invoice and packing slip? can you also have a random order number? i dont really like it that customers can tell how busy you are and how much you have sold by the order number. if you can change it does it effect any other modules or contributions> ive looked through the contributions but i cant seem to find the one i need. thanks Link to comment Share on other sites More sharing options...
Guest Posted November 22, 2005 Share Posted November 22, 2005 I do also need to know hot to make random order number! Please somebody, help us! Link to comment Share on other sites More sharing options...
spottedhaggis Posted November 27, 2005 Share Posted November 27, 2005 I dont know how to generate a random number but you can have the system lie about the order number by setting it up so all orders start at soemthing like 330 and the numbers will be incremental upwards from this number, or whatever number you decide to put. I would say its possible unethical but doable. look for this in checkout_process tep_db_perform(TABLE_ORDERS, $sql_data_array); $insert_id = tep_db_insert_id(); for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) { $sql_data_array = array('orders_id' => $insert_id, Edit the line $insert_id = tep_db_insert_id(); so it reads $insert_id = 330; tep_db_insert_id(); This should mean the next order placed will be order number 330, or 331, I cant remember, but I think 330. Try it, and if it fails, just edit it back to the way it was. Born - Scotland Location - Kent, England Job - hunting for one Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.