product attribute check (or clean)
Hi everyone.
We have a requirement to check a product text attribute in order to force the user to use just digits.
I haven't ever written a script on product, so I would like know how to write a script that:
- remove the non-digits characters
- check the length (max 11) of attribute value
Thanks and regards,
Francesco