cancel
Showing results for 
Search instead for 
Did you mean: 

Telephone error on Magento 2

Telephone error on Magento 2

hello,

 when I purchase at checkout in my magento the purchase does not occur and the following error appears "Please verify the shipping address information. Phone is a required field." Validating in my database I see that the phone number is saved in the quote_address table but it still gives me an error. I attach a screenshot.

error.png

2 REPLIES 2

Re: Telephone error on Magento 2

This issue usually occurs when Magento's checkout process requires validation of the phone number, but something in the configuration or the data flow isn't properly aligned. Here's how you can resolve it:

1. Confirm Phone Number Configuration
Go to the Magento Admin Panel.
Navigate to: Stores > Configuration > Sales > Checkout.
Check if the Phone Number is Required setting is enabled.
If required, ensure users must input a valid phone number during checkout.
2. Verify the Database Data
Even if the phone number is saved in the quote_address table:

Make sure the phone number is saved in the correct format.
Check both the quote_address and sales_order_address tables for consistency.

3.Clear Cache and Reindex

  • Clear the Magento cache:
    php bin/magento cache:flush
  • Reindex your data:
    php bin/magento indexer:reindex
Avid learner and technical marketer at devrims.com

Re: Telephone error on Magento 2

Hello @jpenailillo

 

The error "Please verify the shipping address information. Phone is a required field" occurs because Magento's checkout process requires a valid phone number to proceed, but it seems like the system isn't correctly validating or transmitting the data even though the phone number is stored in the quote_address table.

Ensure the phone number field is correctly populated on the checkout page.

Use browser developer tools to inspect the request payload sent to the /payment-information endpoint. Check if the telephone field is present and correctly formatted in the JSON.

Inspect the payload of the failing /payment-information request in the Network tab.
Ensure the telephone field is correctly formatted and included in the addressInformation object.

Example expected payload:

{

    "addressInformation": {

        "shipping_address": {

            "firstname": "John",

            "lastname": "Doe",

            "street": ["123 Main St"],

            "city": "Los Angeles",

            "telephone": "1234567890",

            "postcode": "90001",

            "country_id": "US",

            "region_id": 12

        },

        "billing_address": {

            "firstname": "John",

            "lastname": "Doe",

            "street": ["123 Main St"],

            "city": "Los Angeles",

            "telephone": "1234567890",

            "postcode": "90001",

            "country_id": "US",

            "region_id": 12

        }

    }

}


Ensure there are no JavaScript errors in the console that might prevent the phone field from being transmitted.
Magento uses Knockout.js for form bindings, confirm that the telephone field is correctly bound.

Check Logs: Look at var/log/debug.log and var/log/exception.log for relevant errors.

Enable Debug Mode: Run this command:

php bin/magento deploy:mode:set developer

If the issue will be resolved, Click Kudos & Accept as a Solution.