Customer name incomplete on order confirmation

僤鯓⒐⒋嵵緔 提交于 2019-12-14 03:25:52

问题


Came across the following during a project: Customer fills out his/her name during checkout: Firstname Middlename Lastname

The confirmation email sent contains incomplete name in the form of "Firstname Lastname" on the first sentence of the confirmation

I looked at the mail templates and the function order.getCustomerName() does not seem to retrieve all the information.


回答1:


You can set this in the customer address settings of admin.

Admin → System → configuration → Customer Configuration → Name and Address Options → Show Middle Name (initial).

Showing more than the initial in the templates is something you will have to investigate further. In the UK we keep the form simple and don't ask middle names.



来源:https://stackoverflow.com/questions/6609100/customer-name-incomplete-on-order-confirmation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!