Ubercart for drupal,如何添加客户ID(标识)字段?
我想要求顾客在买东西时输入他的ID。 除了默认字段(姓名、电话、地址等)之外,添加新字段是否很难?
I want to ask for the customer to enter his ID when he buys something.
Is it hard to add a new field apart from the default: name, phone, address etc ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我了解,Ubercart不使用Drupal的Form API,所以一个简单的 hook_form_alter 不起作用。不过,这里有一篇博客文章,其中有一个可能的选择。 额外字段结帐窗格也可能值得研究。
From what I understand, Ubercart doesn't use Drupal's Form API, so a simple hook_form_alter won't work. However, here is a blog post with one potential option. The Extra Fields Checkout Pane may also be worth looking into.