UberCart 结帐菜单上选择城市?

发布于 2024-08-24 05:38:35 字数 165 浏览 3 评论 0原文

我希望用户在使用 UberCart 结帐时能够从下拉列表中选择城市。

  1. 有没有提供此功能的模块?
  2. 如果没有,我该如何修改此表格以仅包含某些城市作为选项?
  3. 运输模块是否允许您访问城市信息?

基本上,我想根据城市自定义计算运费。

I want users to be able to select a City from a dropdown list when checking out with UberCart.

  1. Is there a module that offers this?
  2. If not, how do I modify this form to include only certain cities as an option?
  3. 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 技术交流群。

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

发布评论

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

评论(3

梦与时光遇 2024-08-31 05:38:35

没有用于此目的的模块,因为城市列表庞大且不断变化(与州不同)。研究 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.

你好,陌生人 2024-08-31 05:38:35

我使用 form_alter 钩子来解决我的问题。

I used the form_alter hook to solve my problem.

听闻余生 2024-08-31 05:38:35

分类法将最适合城市......

Taxonomy will the best for cities...

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