Phone Number Validation Setup
Insert the following code before the closing
</body>
tag:CODE<script src="https://cdn.shoppingscpts.store/phone-validate.js"></script>
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:
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*).