Shopware 6中不同邮政编码的运费成本

huangapple go评论54阅读模式
英文:

Different shipping cost for postcodes in Shopware 6

问题

我想在Shopware 6中为特定邮政编码定义不同的运费。我已经使用规则生成器进行了设置,但我的更改未生效。

我创建了两个规则。
首先是“德国”,其条件是交付国家为德国。
Shopware 6中不同邮政编码的运费成本

然后是“德国岛屿”,其条件是交付国家为德国,且不同的邮政编码。
输入图像描述

我已经为运费方式输入了这两个规则。
Shopware 6中不同邮政编码的运费成本

然而,如果我现在想使用德国岛屿的邮政编码下订单,运费始终显示为德国的费用(7.90),而不是23.90。

通常情况下,出了什么问题,或者可能的原因是什么?

英文:

I would like to define different shipping costs in Shopware 6 for certain postcodes. I used the rule builder for this but my change is ignored there.

I created two rules.
Once Germany with the condition delivery country Germany
Shopware 6中不同邮政编码的运费成本

and the rule Germany island with the condition delivery country Germany and different postcodes
enter image description here

I have entered both rules for the shipping method.
Shopware 6中不同邮政编码的运费成本

However, if I now want to order with a postal code from the Germany Island rule, the shipping costs for Germany (7.90) always appear and never the 23.90.

Is usually something wrong or what could be the reason for this?

答案1

得分: 1

请将规则更改为排除岛屿特定规则中设置的邮政编码,以便德国全境的规则不再包括它们:

  收货地址:国家 > 是以下之一 > [德国]
  并且
  收货地址:邮政编码 > 字母数字 > 不是以下之一 > [18565, ...]
或
  客户已登录 > 否
英文:

You have to adapt your rule for the whole of Germany to explicitly not include the postal codes you have set in the island-specific rule. Currently the rule condition for the whole of Germany will also be met for the island locations, hence why the cheaper shipping costs are still available in that case.

So just change the rule accordingly to exclude the postal codes from the other rule:

  Shipping address: Country > Is one of > [Germany]
  AND
  Shipping address: Postal code > Alphanumeric > Is NONE of > [18565, ...]
OR
  Customer logged in > No

huangapple
  • 本文由 发表于 2023年3月15日 18:40:18
  • 转载请务必保留本文链接:https://go.coder-hub.com/75743570.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定