Looking to add a salutation field in the checkout address area

6 месяцев назад
Hi,

I am looking to add an extra salutation field i.e. where customers can select Mr, Mrs.,Ms, Dr. etc.
in the checkout page where people fill out their address, telephone etc. details.  We are currently using 4.30 version. I haven't found the option in the backend and wondering whether this is possible?

Thanks.
6 месяцев назад
You can add it from the Customer Settings.
1. Go to /Admin/Setting/CustomerUser
2. Under the Address form fields section there is Custom address attributes . You can create a new custom address attribute of type checkbox/radiobutton or textbox if you want to have a free input field
6 месяцев назад
The caveat to using Custom address attributes is that they will (all if you set up many) appear under the address in the order details page, invoices, etc..   There is no way (without customization) to isolate single attribute values.
Similarly, the message template tokens exhibit the same behavior (although you can position them above the Name)
%Order.BillingCustomAttributes%
%Order.ShippingCustomAttributes%

E.g.

Billing Address
Salutation: Mr
Custom Two: X

John Smith
21 West 52nd Street
New York 10021
New York United States of America
6 месяцев назад
Thank you to the both of you for pointing out a potential solution to the problem. Appreciate the help.