Jump to content

[SOLVED] How To Increase The Starting Order Number to A Higher Value


Recommended Posts

Hi

I have converted an existing site to Prestashop.

When I place a test order, the order number count starts at "order #1:"

Is there a way to increase the starting order number to somewhere in the thousands, so it doesn't look like I just started a new business?

Thanks
Deepee

Link to comment
Share on other sites

Thanks for your reply, Rocky.

I currently have the invoice generator turned off as we generate these separately from our accounting package but I changed the invoice number to a highervalue anyway.
I also changed the delivery slips.

When I try to place another test order I got the confirmation email with :-
"Order details
Order: #000001 placed on 2009-10-23 14:05:39
Payment: Direct Deposit"

Placed another order as a different "customer" and got:-
"Order: #000002 placed on 2009-10-23 14:18:03
Payment: Direct Deposit"

Is there anything else I need to change?

Thanks
Deepee

Link to comment
Share on other sites

I'm surprised that doesn't work. The only other thing I can think of is that it is using auto-increment to generate the order numbers. If it is, you could execute the following query on your database to set the next order number to 1000:

ALTER TABLE `ps_orders` AUTO_INCREMENT = 1000

  • Like 4
Link to comment
Share on other sites

  • 1 month later...
I'm surprised that doesn't work. The only other thing I can think of is that it is using auto-increment to generate the order numbers. If it is, you could execute the following query on your database to set the next order number to 1000:

ALTER TABLE `ps_orders` AUTO_INCREMENT = 1000


Rocky, could you please explain how to execute this query? What file should I look for?
Thank you very much!
Link to comment
Share on other sites

  • 2 weeks later...
  • 3 months later...
  • 5 weeks later...

Ive made a plugin for the backend for this. To use it:

1. Copy the attached file into your admin/tabs folder
2. Go to Tools/Tabs/Add New
3. Enter "Order Options" as the name
4. Enter "AdminOrderOptions" as the class
5. Select "Orders" as the parent
6. Click Save
7. Go to Orders/Order Options
8. Enter the new number you want to start with
9. Click "Change Start number"

Done.

Let me know if there are any problems I'll try and post an update.

AdminOrderOptions.php

  • Like 6
Link to comment
Share on other sites

Cool, initially looks good, installed great although running live shop and don't want to change order number right now.

One thought, what happens if you change it to a number less than the number you are on currently? Will it throw an error, or allow 're ordering' on the same number?

Something worth testing I think although cant right now as running a live shop.

I can test it once home next week on a test environment.

Dan

Link to comment
Share on other sites

Good question - I may add a line to get the last order number and make sure its lower than the entered value. For new shops its fine though.

[update]: Just realised, it doesnt matter if you change the autoinc value to a value less than the highest order number - the system will still take the next number and ignore autoinc, so this should be perfectly safe.

I just tried setting 1000, placing an order - OK, then setting 800 and placing an order - I got order number 1001 so no problems.

Link to comment
Share on other sites

  • 4 weeks later...
  • 3 months later...
  • 2 months later...
  • 4 weeks later...
I'm surprised that doesn't work. The only other thing I can think of is that it is using auto-increment to generate the order numbers. If it is, you could execute the following query on your database to set the next order number to 1000:

ALTER TABLE `ps_orders` AUTO_INCREMENT = 1000




Help please!!!
I use hostgator as my hosting company and followed these steps and got this error.

#1046 - No database selected
ALTER TABLE `ps_orders` AUTO_INCREMENT =2092

Please help.
Thanks in advance.
Link to comment
Share on other sites

  • 1 month later...

Guys for accounting purposes I want to reset number of orders and make them start from 1. Is it possible as I have some completed orders in already and also many test orders. Apparently I have customers with loyalty points which are based on order number.
What is best solution?
Thanks.

Link to comment
Share on other sites

  • 2 months later...
  • 5 weeks later...
  • 3 weeks later...
  • 2 weeks later...

Hi,

i'm trying to add the address of the supplier on the customer's delivery slip in order for the customer to know the location of the supplier in case of any item exchange ( thats if the customer doesnt want to use the RMA option ).

can you please advise,

thanks

Link to comment
Share on other sites

  • 2 months later...

Ive made a plugin for the backend for this. To use it:<br/><br/>1. Copy the attached file into your admin/tabs folder<br/>2. Go to Tools/Tabs/Add New<br/>3. Enter "Order Options" as the name<br/>4. Enter "AdminOrderOptions" as the class<br/>5. Select "Orders" as the parent<br/>6. Click Save<br/>7. Go to Orders/Order Options<br/>8. Enter the new number you want to start with<br/>9. Click "Change Start number"<br/><br/>Done.<br/><br/>Let me know if there are any problems I'll try and post an update.

 

It works perfectly for 1.4.4. Thanks Eck!

Link to comment
Share on other sites

  • 1 month later...
  • 3 months later...
  • 3 weeks later...

Ive made a plugin for the backend for this. To use it:

1. Copy the attached file into your admin/tabs folder

2. Go to Tools/Tabs/Add New

3. Enter "Order Options" as the name

4. Enter "AdminOrderOptions" as the class

5. Select "Orders" as the parent

6. Click Save

7. Go to Orders/Order Options

8. Enter the new number you want to start with

9. Click "Change Start number"

Done.

Let me know if there are any problems I'll try and post an update.

 

This one worked perfect for me!

Thnx!!!!

 

( installed on version 1.4.4.1 )

 

http://www.hippeboefjes.nl

Link to comment
Share on other sites

  • 4 months later...
  • 1 month later...
  • 4 weeks later...

I'm surprised that doesn't work. The only other thing I can think of is that it is using auto-increment to generate the order numbers. If it is, you could execute the following query on your database to set the next order number to 1000:

 

ALTER TABLE `ps_orders` AUTO_INCREMENT = 1000

 

WORKS! 1.4.8.2

Link to comment
Share on other sites

  • 2 weeks later...

version 1.4.9 the Eck! plugin does not work. anyone know how to get the invoice numbers to line up? i used the sql statement above to get my order numbers updated but the invoice number is now out of sync.

 

run this query ALTER TABLE `ps_orders` AUTO_INCREMENT =1000

 

Your next ID order will be 1000

Link to comment
Share on other sites

Thanks, I tried setting invoice number there and it still generates the low number. I am on number 5 now :D .... I guess it is fine if they get out of sync later but I wanted the order number and invoice number to be higher so it doesn't project my company as being brand new and untrustworthy. Thanks!

Link to comment
Share on other sites

  • 3 months later...

Ive made a plugin for the backend for this. To use it:

 

1. Copy the attached file into your admin/tabs folder

2. Go to Tools/Tabs/Add New

3. Enter "Order Options" as the name

4. Enter "AdminOrderOptions" as the class

5. Select "Orders" as the parent

6. Click Save

7. Go to Orders/Order Options

8. Enter the new number you want to start with

9. Click "Change Start number"

 

Done.

 

Let me know if there are any problems I'll try and post an update.

 

Spot on!

Link to comment
Share on other sites

  • 6 months later...

Ive made a plugin for the backend for this. To use it:

 

1. Copy the attached file into your admin/tabs folder

2. Go to Tools/Tabs/Add New

3. Enter "Order Options" as the name

4. Enter "AdminOrderOptions" as the class

5. Select "Orders" as the parent

6. Click Save

7. Go to Orders/Order Options

8. Enter the new number you want to start with

9. Click "Change Start number"

 

Done.

 

Let me know if there are any problems I'll try and post an update.

 

Hi Guys, I've done the above on 1.4.8.2 and when I go to order options in orders it says 'tab file not found' anyone know where i might be going wrong. I've definitely uploaded the file too. (admin/tabs)

Link to comment
Share on other sites

  • 3 months later...

This module is GREAT.  It's simple, free and works with 1.5.5.   The site is in German, so select your language and download this free module.  My wording is in English.

 

Thanks developer silbersaiten.

 

 

I use this http://prestashop-module.de/en/back-office-features-for-prestashop/80-noumerique-bestellungs-und-kundennummer-manager.html, numerique by silbersaiten

for free and works great. just increased customers and ordernumbers for 2012

  • Like 1
Link to comment
Share on other sites

  • 2 months later...
  • 3 weeks later...
  • 3 months later...
  • 2 weeks later...
  • 6 years later...

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...