Good morning!
In a cart system (virtual store), what is the most usual way to create the order number? Remembering that the user does not have to log in.
I await.
Good morning!
In a cart system (virtual store), what is the most usual way to create the order number? Remembering that the user does not have to log in.
I await.
You can create an encrypted key using the hash () and #:
$codigo=hash('crc32',hash('sha512',microtime()));
It creates a sha512
of microtime()
and then a crc32
which is a smaller encryption, you can conclude with a strtoupper () to maintain an uppercase pattern.
In short, you can use creativity to unlock various possibilities for this wide-ranging situation.