SNIPPET: CHANGE NEXT ORDER ID VALUE

Snippet: Change next order ID value 
Compatibility
All Versions
Rating
  • Currently 5.00/5

Rating: 5.0/5
(3 votes cast)

Login to Rate

If you've just opened a new store, you probably don't want customers to see low order ID's.

Let's say you want the next order ID to be 5000, apply this SQL patch...
ALTER TABLE xcart_orders AUTO_INCREMENT = 5000;
You can use the same method for other tables, change x to whatever value you want...
ALTER TABLE xcart_categories AUTO_INCREMENT = x;
ALTER TABLE xcart_products AUTO_INCREMENT = x;
ALTER TABLE xcart_manufacturers AUTO_INCREMENT = x;
ALTER TABLE xcart_extra_fields AUTO_INCREMENT = x;
ALTER TABLE xcart_pages AUTO_INCREMENT = x;


ID: 80 | CAT: 9
No comments yet... why not be the first?

Comment / Reply



Emails will not be published or shared. If you have a Gravatar account - the avatar image associated with your email address will appear. Please note, all comments are moderated, so be nice.



Like this comments mod? Get it here

There have been no reviews/comments yet

Please login to leave a comment/review
Name: *
Email: *
Telephone:  
Question(s): *
Code:  
Enter Code: *
    Submit
Your name
Your email
Recipient's email
  Send to friend
 X 

You added a product to the cart!

View cart

Checkout

Back to products

Close

PayPal Accepted