how do I generate a 5 digit random number per order
I have a ecart 5 site set up that sells online tests where clients login pay for a test and when successfully passing gets a certificate. I have been asked to have the purchases generate a 5 digit code per test so that only one person can take a test based on the 5 digit code.
How would I do that?