Skip to content

New ZoneMatcher::match no longer finds the correct scope #16515

@gewebe

Description

@gewebe

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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions