Sylius: Postcode ranges supported for zone matching

Created on 26 Jan 2018  路  6Comments  路  Source: Sylius/Sylius

鈿狅笍 馃洠 This issue is a part of the Sylius Public Roadmap 馃洠 鈿狅笍

| Q | A
| ---------------- | -----
| Bug report? | no
| Feature request? | yes
| BC Break report? | no
| RFC? | yes
| Sylius version | 1.2

Would be great if we can also specify a Postcode range for every zone. Right now Zones can be defined as:

  • Zone of countries ("European Union")
  • Zone of provinces (lands, cantons, etc.)
  • Zone of other Zones (like "US + EU")

Zones are used for shipping & tax calculation purposes. The responsible class is https://github.com/Sylius/Sylius/blob/master/src/Sylius/Component/Addressing/Matcher/ZoneMatcher.php

More about zones: http://docs.sylius.org/en/latest/book/customers/addresses/zones.html

Definition of Done:

  • Behat scenarios implemented
  • Postcode range configurable on the Zone entity (?)
  • ZoneMatcher taking this into account
Feature Roadmap

Most helpful comment

If that's an easy pick then half of our issues are easy picks 馃帀

All 6 comments

Well contrary to names of countries and Provinces, zip codes aren't unique so the same zip code in America could mean a totally different region in Israel.

So how would I go about that? Would I just make it so you have to also select a country and then store the code of this region as for example Germany_26122 with type zip code or do I create an Entity (which would require some refactoring of the old system).

What's the status of this 'Easy Pick Feature'? :-)

The merge request of the implementation is still waiting for review.

If that's an easy pick then half of our issues are easy picks 馃帀

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions.

Still waiting for feedback

Was this page helpful?
0 / 5 - 0 ratings