Hello,
I’m trying to correctly set up my tracking page for orders
I’d like to set up a minimum requirement and the further alert for the required tracking code if less than 11 digits, but the following works for numbers only and my tracking code is made by letters and numbers.
Since following code alert works only with numbers, is it possible to set a minimum requirement for a mixed letter and number tracking code (ex. PZ123456789) with a minimum requirement of 11 digits?
i think the problem is on the if (num.lenght < 11) that recognize only numbers and not letters.
In fact, if you put only numbers this code works, if you put just one letter it doesn’t give back the alert.
https://www.pianodgirls.com/pages/traccia-il-mio-ordine
Thanks for helping me