Drupal、Ubercart:有没有办法在运输设置中选择所有欧洲/非欧洲国家?

发布于 2024-10-01 08:23:17 字数 184 浏览 1 评论 0原文

我通常创建运输条件规则,为以下各项分配不同的成本:

  • 国内运输(选择特定国家/地区)
  • 和国际运输(选择同一国家/地区,但在条件中添加“不”)

我现在必须根据以下条件分配不同的运输成本:欧洲/不是欧洲。解决方案是选择欧洲的所有国家,但我想知道是否有更快的方法,

谢谢

I usually create conditional rules with shipping to assign different costs for:

  • national shipping (a specific country is selected)
  • and international shipping (the same country is selected but a NOT is added to the condition)

I have now to assign different shipping costs according to Europe / Not Europe. A solution would be to select all countries in Europe, but I was wondering if there is a faster way

thanks

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

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

发布评论

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

评论(2

愛上了 2024-10-08 08:23:17

为了您的用户的理智,就按照其他人的方式去做吧!

下拉一个国家/地区,其中包含所有受支持的国家/地区的列表。默认为您的“家乡”国家。

如果您要寄送东西,那么除了运输成本之外,还有更多的考虑因素,您可能需要填写某些国家/地区的特定税务表格,并且根据您的网站销售的商品,您可能需要对某些国家/地区进行特殊处理(尝试将咖啡寄到泰国) ——您需要获得农业部的许可!)。

For the sanity of your users just do it the way everybody else does!

Have a country pull down with a list of all supported countries in it. Defaulting to you "home" nation.

If you are sending stuff there are a lot more considerations than just shipping costs, you may need to fill in specific tax forms for some countries and depending on what your site is selling you may need special processing for some countries (try sending coffee to Thailand -- you need to obtain permission from thier ministry of agriculture!).

追我者格杀勿论 2024-10-08 08:23:17

在管理/商店/设置/报价中创建不同的运输方式(一种用于欧洲,一种用于非欧洲)。

  1. 通过编辑新的运输方式并添加条件来添加规则
    或转至 admin/workflow/rules 中的规则配置
  2. 使用带有 order:delivery-address:country 数据选择器的文本比较条件
  3. 在值字段中放置正则表达式以匹配任何所需的国家/地区名称,例如列表欧盟成员国如下。

也许也可以用邮政编码来完成,但我不知道它们是如何构造的。每个人都保持理智。

(\W|^)(奥地利|比利时|保加利亚|克罗地亚|塞浦路斯|捷克|共和国|丹麦|爱沙尼亚|芬兰|法国|德国|希腊|匈牙利|爱尔兰|意大利|拉脱维亚|立陶宛|卢森堡|马耳他|荷兰|波兰|葡萄牙|罗马尼亚|斯洛伐克|斯洛文尼亚|西班牙|瑞典|英国)(\W|$)

Create the different shipping methods at admin/store/settings/quotes (one for Europe, one for non-Europe).

  1. Add a Rule by editing the new shipping method and adding a condition
    or go to the Rules config at admin/workflow/rules
  2. Use a text comparison condition with a order:delivery-address:country data selector
  3. In the value field place the regular expression to match any of the desired country names, for example the list of EU member states below.

Maybe it could be done with postal codes too, but I do not know how they are structured. Everyone keeps their sanity.

(\W|^)(Austria|Belgium|Bulgaria|Croatia|Cyprus|Czech|Republic|Denmark|Estonia|Finland|France|Germany|Greece|Hungary|Ireland|Italy|Latvia|Lithuania|Luxembourg|Malta|Netherlands|Poland|Portugal|Romania|Slovakia|Slovenia|Spain|Sweden|United\sKingdom)(\W|$)

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