Jump to content

Customer Numbers - Generated by Cart System Rate Topic   - - - - -

 
  • ags4u
  • Junior Member
  • Trial users
  • Join Date: 27-May 11
  • 6 posts

Posted 11 June 2012 - 10:24 PM #1

Is there a way in CS-Cart - 2+ to have it automatically create a customer number unique to new accounts as they are set up?

Thank you,
Drew

 
  • giftery.me
  • Member
  • Members
  • Join Date: 22-Apr 12
  • 18 posts

Posted 12 June 2012 - 05:39 AM #2

This already takes place as all user's are given an ID (user_id) at the database level in the table cscart_users.

Depending on what you want to do with this you can query against it, display it back in the admin, or use it in an addon / extension pretty easily as it's pulled up with order records.

Just keep in mind that this is an auto-incrementing ID meaning that it will give away how many customer accounts you have as it keeps going up by one. If you're not willing to share that you'll need to hack in another field or change how this one is generated.
The Giftery.me Team
- What's On Your Wishlist?

Get Our Free CS Cart Addon and Bring Universal Wishlists to Your Store