Jump to content

Increase order id number


Recommended Posts

Hi,

how can I make the order/cart id start from fe 100 instead of 1 ?

Because I'm developing a payment module and I get conflicts with duplicate order id's...

Now my next order id = 28, but I want all next orders to start from fe 100...

Link to comment
Share on other sites

I assume I'll have to edit ps_orders AND ps_cart

is that correct ?

ALTER TABLE `ps_orders` AUTO_INCREMENT = 100;
ALTER TABLE `ps_cart` AUTO_INCREMENT = 100;



Secund question : which tables and their depending tables can be emptied to remove all previous orders and carts ?

Link to comment
Share on other sites

the order id is different from cart id, so you don't have to do this in ps_cart too.

second question:

NEVER use this in a live system, or you'll get troubles with your financial office ;)
delete from ps_cart;
delete from ps_cart_product;
delete from ps_message;
delete from ps_order_detail;
delete from ps_order_history;
delete from ps_orders;

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...