Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how to show the order number in Admin>Orders? and make the order number random>


Jimster_s

Recommended Posts

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

  • 2 weeks later...

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...