Where To Check Phone Number Control?

Hello. I want to check phone number (validation) that customer type if they enter in correct phone format. If they enter incorrectly it gives message.

I know it should be checked at registration. There are two place that I need to control phone number. Profile update and checkout pages. People usually select a product and goes to checkout page before creating a profile. Theu create their profile on checkout page. That’s why I need to check on both places.

So in which function should I check phone number?

There is the Phone field type in the profile fields. If you choose it, the system will check phone format automatically.

Thanks. I have found that I look for:


Where to change phone validator? - Configuration - CS-Cart Community Forums

How to change RegExp on registration page? - Configuration - CS-Cart Community Forums