Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Resetting the order id value in sql


baggers

Recommended Posts

Hi,

 

In the instructions downloading OS Commerce it tells you how to change the order id value in the database (shown below). However, it doesn't work.

 

AllI want to do is change the order numbers that the cart gives out (Ie. instead of starting with 1, then 2, 3, 4 etc. I want to start with a high number such as 1625 or something like that.

 

Anyone know the correct query to run in sql?

 

alter table osc_orders auto_increment = 1000;

 

Thanks,

 

Paul

Link to comment
Share on other sites

Hi,

 

In the instructions downloading OS Commerce it tells you how to change the order id value in the database (shown below). However, it doesn't work.

 

AllI want to do is change the order numbers that the cart gives out (Ie. instead of starting with 1, then 2, 3, 4 etc. I want to start with a high number such as 1625 or something like that.

 

Anyone know the correct query to run in sql?

 

alter table osc_orders auto_increment = 1000;

 

Thanks,

 

Paul

 

I did it by manually editing the order id for a dummy order. Once you place the order, go in a edit the order_id column in the following tables:

 

orders, orders_products, orders_products_attributes, orders_products_downloads, orders_status_history, orders_total.

 

Then make sure orders_id column in the orders tables is set to auto_increment. Once a real order is placed, then you can delete the dummy order.

 

Hope this helps.

Link to comment
Share on other sites

I did it by manually editing the order id for a dummy order.  Once you place the order, go in a edit the order_id column in the following tables:

 

orders, orders_products,  orders_products_attributes, orders_products_downloads, orders_status_history, orders_total.

 

Then make sure orders_id column in the orders tables is set to auto_increment.  Once a real order is placed, then you can delete the dummy order.

 

Hope this helps.

 

Just had a quick look at the database but there doesn't seem to be an easy way to manually change any of the fields through my host's control panel. Any other way of doing it?

 

Paul

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...