-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
Potential BugPotential bugs or bugfixes, that needs to be reproduced.Potential bugs or bugfixes, that needs to be reproduced.
Description
Sylius version affected: 1.13
Description
Since the new ZoneMatcher::match has been changed, the correct scope cannot be found if multiple scopes exist for same country, e.g. 'all' and 'tax'. src/Sylius/Component/Addressing/Matcher/ZoneMatcher.php
Steps to reproduce
Create 2 zones for a country, first one with scope 'all', second with scope 'tax', then create a tax rate for the zone with scope tax. In the checkout you will see the zone is no longer found correctly and the taxes are not calculated.
Possible Solution
The correct zone for the scope should come out of the new findOneByAddressAndType Query
Metadata
Metadata
Assignees
Labels
Potential BugPotential bugs or bugfixes, that needs to be reproduced.Potential bugs or bugfixes, that needs to be reproduced.