magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Telephone field in customer account does not validate

Open marctbb opened this issue 11 months ago • 20 comments

Preconditions and environment

Magento 2 versions tested:

  • 2.4.6-p4 (with the default Blank theme).
  • 2.4.7 (also tested with the default Blank theme).

Configuration:

  • Stores > Configuration > Customers > Customer Configuration > Show Telephone: Set to Required.

Issue observed in both environments and themes.

Steps to reproduce

  1. Go to My Account as a logged-in customer.
  2. Attempt to Add or Edit the telephone field under account details.
  3. Enter invalid input, such as text or symbols (e.g., "abc123" or "!@#").
  4. Save the changes.

Expected result

  • The telephone field in the My Account section should validate input to ensure it is a valid phone number (e.g., digits only, proper phone format).
  • Invalid input should trigger an error message and prevent saving.

Actual result

  • The telephone field in My Account allows invalid input (e.g., text or symbols) without validation.
  • In the checkout, when retrieving customer details from the account, the invalid phone number causes errors during the shipping process.
  • For example, UPS shipping fails to process the order due to incorrect phone number format.

Additional information

  • Video evidence of the issue is attached for reference.
  • The issue occurs regardless of the Magento version (tested on 2.4.6-p4 and 2.4.7) or theme used (Blank theme).
  • This inconsistency between the My Account section and Checkout makes it critical, as incorrect phone numbers lead to shipping failures.

https://github.com/user-attachments/assets/10689ac7-e900-4111-a35a-e1bde0c7e217

Release note

No response

Triage and priority

  • [ ] Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • [X] Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • [ ] Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • [ ] Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • [ ] Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

marctbb avatar Nov 22 '24 11:11 marctbb