Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change order number increment or default order number?


winedog

Recommended Posts

Hi,

 

So it looks like OSC starts at order number 1 and then just increments numerically after each order is created.

 

Where can I change the starting order number or the way in which orders increment?

 

Is there a way to force it to a larger number so that it's not immediately obvious how many orders have been processed on a brand new store?

Link to comment
Share on other sites

The answer is in the knowledgebase

 

http://www.oscommerce.info/kb/osCommerce

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

  • 1 month later...

I have installed scrambled order number on my other shops. What would be nice is if you could just force the number to increment by say 6 instead of by 1 every time a new order is placed. Then once your store is moving along, you could back that number down. Of course this would not work for those counting their orders, but it would for lots of others.

 

Tim

Link to comment
Share on other sites

What would be nice is if you could just force the number to increment by say 6 instead of by 1 every time a new order is placed.
That's possible, but apparently in MySQL, it is a server wide setting (affects all tables on all databases): auto_increment_increment.

 

You can also manually set the order ID when you insert into the orders table. I forget if you have to turn off auto incrementing on the column first. Might be subject to an odd race condition it two people place orders at the same time.

Always back up before making changes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...