Jump to content

[SOLVED] Customer ID - minimum length


Recommended Posts

Looking at the database, the customer ID starts at 1 and increments from there. I am just wondering whether it is possible to set this start at a minimum of 6 digits?

I am looking at integrating the customer ID into a members card type system with ID being a barcode.

Thanks, Anthony

Link to comment
Share on other sites

  • 6 months later...

Hi Rocky, Thanks for the reply. I did figure this out after researching further and you are indeed correct. Excellent advice! I changed ps_order and started it at a random 6 digit number. I did the same for ps_customer. I tested with new orders and new customers and everything runs perfectly starting from the numbers I put it.

I did want to mention that it is important to check and change the other ps_order variants (I can't remember the names off the top of my head but like ps_order_detail etc, there's about 8 in total) - the ones that have anything 'auto_increment' need to be changed aswell to the same number as ps_order otherwise there will be discrepancies.

I think the person that started the thread can now put [sOLVED].

Just a note to anyone worried about touching the database, yes it can be daunting at first if you are new to it but work slowly and methodically and you will be fine. Also do a database backup first just in case!

Link to comment
Share on other sites

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