订单确认时客户姓名不完整

发布于 2024-11-19 00:55:46 字数 195 浏览 7 评论 0原文

在做项目的过程中遇到以下情况: 客户在结帐时填写了他/她的姓名:名字 中间名 姓氏

发送的确认电子邮件在确认的第一句话中包含不完整的姓名,形式为“名字姓氏

”查看邮件模板,函数 order.getCustomerName() 似乎没有检索所有信息。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

狠疯拽 2024-11-26 00:55:46

您可以在管理员的客户地址设置中进行设置。

管理→系统→配置→客户配置→名称和地址选项→显示中间名(姓名首字母)。

在模板中显示的内容不只是首字母,您还需要进一步研究。在英国,我们保持表格简单,不问中间名。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文