英文:
Different shipping cost for postcodes in 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
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.
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论