Drupal、Ubercart:有没有办法在运输设置中选择所有欧洲/非欧洲国家?
我通常创建运输条件规则,为以下各项分配不同的成本:
- 国内运输(选择特定国家/地区)
- 和国际运输(选择同一国家/地区,但在条件中添加“不”)
我现在必须根据以下条件分配不同的运输成本:欧洲/不是欧洲。解决方案是选择欧洲的所有国家,但我想知道是否有更快的方法,
谢谢
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为了您的用户的理智,就按照其他人的方式去做吧!
下拉一个国家/地区,其中包含所有受支持的国家/地区的列表。默认为您的“家乡”国家。
如果您要寄送东西,那么除了运输成本之外,还有更多的考虑因素,您可能需要填写某些国家/地区的特定税务表格,并且根据您的网站销售的商品,您可能需要对某些国家/地区进行特殊处理(尝试将咖啡寄到泰国) ——您需要获得农业部的许可!)。
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!).
在管理/商店/设置/报价中创建不同的运输方式(一种用于欧洲,一种用于非欧洲)。
或转至 admin/workflow/rules 中的规则配置
也许也可以用邮政编码来完成,但我不知道它们是如何构造的。每个人都保持理智。
(\W|^)(奥地利|比利时|保加利亚|克罗地亚|塞浦路斯|捷克|共和国|丹麦|爱沙尼亚|芬兰|法国|德国|希腊|匈牙利|爱尔兰|意大利|拉脱维亚|立陶宛|卢森堡|马耳他|荷兰|波兰|葡萄牙|罗马尼亚|斯洛伐克|斯洛文尼亚|西班牙|瑞典|英国)(\W|$)
Create the different shipping methods at admin/store/settings/quotes (one for Europe, one for non-Europe).
or go to the Rules config at admin/workflow/rules
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|$)