Skip to main content
Skip table of contents

Phone Number Validation Setup

  1. Insert the following code before the closing </body> tag:

    CODE
    <script src="https://cdn.shoppingscpts.store/phone-validate.js"></script>
  2. Add the phone-validate attribute to your phone <input>, specifying the target region (e.g., CO for Colombia):

    CODE
    <input type="tel" phone-validate="CO" placeholder="Enter phone number">

The system will automatically convert numbers to a valid format. Accepted formats:

CODE
With country code: +57 301 1234567

With leading zero: 0301 1234567

Without prefix: 301 1234567

If the number is invalid and cannot be corrected:

  • The form submit button will become disabled (automatically).

  • The user cannot complete the order.

Refer to ISO Country Codes (*use the Alpha-2 column*).

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.