Best way to generate order numbers for an online store?

前端 未结 13 2071
野的像风
野的像风 2021-01-31 00:09

Every order in my online store has a user-facing order number. I\'m wondering the best way to generate them. Criteria include:

  • Short
  • Easy to say over the
13条回答
  •  广开言路
    2021-01-31 00:27

    You could do it like a postal code: 2b2 b2b

    That way it has some kind of checksum (not really, but at least you know it's wrong if there are 2 consecutive numbers or letters). It's easy to read out over the phone, and it doesn't give an indication of how many orders are in the system.

提交回复
热议问题