Titel
| Old | New |
|---|
| 1 | Geo Zones Geo Zones | 1 | Geo Zones |
|---|
Permalink
| Old | New |
|---|
| 1 | admin/geo_zones_geo_zones | 1 | geo_zones |
|---|
Inhoud
| Old | New |
|---|
| 1 | # Admin:geo_zones/geo_zones | 1 | # Geo Zones
|
|---|
| 2 | | 2 |
|
|---|
| 3 | **Geo zones** or geographical zones are custom groups of | 3 | **Geo zones** or geographical zones are custom groups of [countries](countries) and/or [zones](zones)/states/provinces. They can for example be used to allow/disallow functionality to a certain region like [shipping options](shipping_modules) or define [tax rates](tax_rates).
|
|---|
| 4 | [countries](countries) and/or | 4 |
|
|---|
| 5 | [zones](zones)/states/provinces. They can for example | 5 | Examples:
|
|---|
| 6 | be used to allow/disallow functionality to a certain region like | 6 |
|
|---|
| 7 | [shipping options](shipping_options) or define [tax rates](tax/tax_rates). | 7 | Scandinavia
|
|---|
| 8 | | 8 |
|
|---|
| 9 | Examples: | 9 | * All zones in Denmark
|
|---|
| 10 | | 10 | * All zones in Sweden
|
|---|
| 11 | Scandinavia | 11 | * All zones in Norway
|
|---|
| 12 | | 12 | * All zones in Finland
|
|---|
| 13 | * All zones in Denmark | 13 |
|
|---|
| 14 | * All zones in Sweden | 14 | Nordic
|
|---|
| 15 | * All zones in Norway | 15 |
|
|---|
| 16 | * All zones in Finland | 16 | * All zones in Denmark
|
|---|
| 17 | | 17 | * All zones in Sweden
|
|---|
| 18 | Nordic | 18 | * All zones in Norway
|
|---|
| 19 | | 19 | * All zones in Finland
|
|---|
| 20 | * All zones in Denmark | 20 | * All zones in Faroe Islands
|
|---|
| 21 | * All zones in Sweden | 21 | * All zones in Greenland
|
|---|
| 22 | * All zones in Norway | 22 | * All zones in Iceland
|
|---|
| 23 | * All zones in Finland | 23 | * All zones in Åland Islands
|
|---|
| 24 | * All zones in Faroe Islands | 24 |
|
|---|
| 25 | * All zones in Greenland | 25 | ## Entity Object
|
|---|
| 26 | * All zones in Iceland | 26 |
|
|---|
| 27 | * All zones in Åland Islands | 27 | ```php
|
|---|
| | 28 | $geo_zone = new ent_geo_zone();
|
|---|
| | 29 | $geo_zone->data['name'] = 'Canada and USA';
|
|---|
| | 30 | $geo_zone->data['zones'] = [
|
|---|
| | 31 | [
|
|---|
| | 32 | 'country_code' => 'CA',
|
|---|
| | 33 | 'zone_code => '',
|
|---|
| | 34 | 'city' => '',
|
|---|
| | 35 | ],
|
|---|
| | 36 | [
|
|---|
| | 37 | 'country_code' => 'US',
|
|---|
| | 38 | 'zone_code => '',
|
|---|
| | 39 | 'city' => '',
|
|---|
| | 40 | ],
|
|---|
| | 41 | ];
|
|---|
| | 42 | $geo_zone->save();
|
|---|
| | 43 | ``` |
|---|
Geredigeer deur tim op 28 Des. 2023 om 07:00