Hello Magento Friends,

In this blog, we will learn about How to Fix Customer Name Prefix/Suffix Showing as Numbers in Address in Magento 2.

Prefixes and Suffixes are added to customers’ names in order to group them based on their marital status, qualification, etc. Learn How to Add Prefix and Suffix in Magento 2.

In Magento 2, order summary billing and shipping address instead of prefix/suffix of customer’s name, it is displayed number. Instead of name prefixes like Mr., Mrs., or Dr., it displays numbers. Go ahead to know the solution to this issue.

Steps to Fix Customer Name Prefix/Suffix Showing as Numbers in Address in Magento 2:

Step 1: First, we need to create a “di.xml” file inside the extension etc directory of our extension at the following path.

app\code\Vendor\Extension\etc

Now add the code as follows

Step 2: After that, we need to create a “ChangePrefixOption.php” file inside the extension at the following path.

app\code\Vendor\Extension\Plugin

And append the below code-snippet

Conclusion:

Hence, using the above steps, you can Fix Customer Name Prefix/Suffix Showing as Numbers in Address in Magento 2. If you face any difficulty, share it with me through the comment box. Share the solution with your friends and stay in touch with us.

Happy Coding!

Click to rate this post!
[Total: 3 Average: 5]