Fixing Checkout Phone Number Fields Accepting Text

The Phone Number checkout field allows using text characters. How can I change it?

One Step Checkout Pro allows you to change the validation type of the Phone Number field directly in the configurations. For that, proceed to Stores → Settings → Configuration → Amasty Extensions → One Step Checkout → Additional Fields and Other Extras and switch the Phone Number Field Validation field to Numeric Only:




      • Related Articles

      • One Step Checkout API

        We have created public API collections for One Step Checkout module, as well its One Step Checkout Delivery Date and One Step Checkout Gift Wrap submodules, with all available queries and sample data that you can both test via our demo endpoints and ...
      • How to change the type of additional checkout fields?

        The One Step Checkout for Magento 2 extension allows adding up to 3 custom checkout fields (System → Manage Checkout Fields → Add Custom Fields). By default, they are set as text field attributes, and it is impossible to change their type with the ...
      • How to change a checkout field (its length/width) or an image on the checkout page?

        Out of the box, the One Step Checkout extension allows you to modify the checkout field width parameters in System → Manage Checkout Fields: If you need to make additional adjustments to the checkout design, you may do it by modifying the checkout ...
      • What features are included in each tariff plan of One Step Checkout?

        LITE One Step Checkout extension - all checkout sections on one page; - customizable design (layout, color scheme, address formatting, default values); - customer Geo IP location detect; - easy checkout fields management; - Stripe Card Element ...
      • How to rearrange the checkout page layout?

        The out-of-the-box functionality of the One Step Checkout extension allows you to easily modify the checkout layout using the drag and drop menu in Stores → Configuration → Amasty Extensions → One Step Checkout → Design → Layout. Furthermore, the ...