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
set initial order id
-
- Phoca Newbie
- Posts: 6
- Joined: 19 Nov 2023, 18:26
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: set initial order id
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 6
- Joined: 19 Nov 2023, 18:26
Re: set initial order id
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!
ALTER TABLE your_table_name AUTO_INCREMENT = 1000;
Job done!
- Benno
- Phoca Hero
- Posts: 9435
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: set initial order id
Ok.
Kind regards,
Benno
Kind regards,
Benno