set initial order id

Phoca Cart - complex e-commerce extension
rusty-bearing
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 19 Nov 2023, 18:26

set initial order id

Post by rusty-bearing »

Hi, we're moving our small club shop to Phoca and I want to set the initial order number to 1186 so that it follows on from previous invoice numbers in the old component, can that be done in settings or if not which table contains the next available invoice number please?

thanks
Mike

Tags:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: set initial order id

Post by Jan »

Hi, there is no option to set number of order as this is auto increment number in database. The ID column is in table: #__phocacart_orders.

Jan
If you find Phoca extensions useful, please support the project
rusty-bearing
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 19 Nov 2023, 18:26

Re: set initial order id

Post by rusty-bearing »

Finally got round to dealing with this. Either in PHPmyAdmin or Workbench - firstly I truncated the table to reset the auto increment to 1 then set it to the required number with
ALTER TABLE your_table_name AUTO_INCREMENT = 1000;

Job done!
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9435
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: set initial order id

Post by Benno »

Ok.

Kind regards,
Benno
Post Reply