UberCart 结帐菜单上选择城市?
我希望用户在使用 UberCart 结帐时能够从下拉列表中选择城市。
- 有没有提供此功能的模块?
- 如果没有,我该如何修改此表格以仅包含某些城市作为选项?
- 运输模块是否允许您访问城市信息?
基本上,我想根据城市自定义计算运费。
I want users to be able to select a City from a dropdown list when checking out with UberCart.
- Is there a module that offers this?
- If not, how do I modify this form to include only certain cities as an option?
- Does the shipping module allow for you to get access to the City information?
Basically, I want to customly calculate the shipping costs based on the City.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
没有用于此目的的模块,因为城市列表庞大且不断变化(与州不同)。研究 Ubercart 和 CCK 的集成,以便您可以为此设置自己的字段。
我不知道有哪个模块可以立即执行此操作,但它应该会引导您走向正确的方向。
There is not a module for this because the list of Cities is huge and ever changing (unlike States). Look into an integration of Ubercart and CCK so you can set up your own field for this.
I don't know of a module that does this offhand but it should lead you in the right direction.
我使用 form_alter 钩子来解决我的问题。
I used the form_alter hook to solve my problem.
分类法将最适合城市......
Taxonomy will the best for cities...