Changeset 2815669
- Timestamp:
- 11/10/2022 04:42:27 AM (3 years ago)
- Location:
- new-zealand-shipping-zones-for-woocommerce
- Files:
-
- 8 edited
- 1 copied
-
tags/1.0.1 (copied) (copied from new-zealand-shipping-zones-for-woocommerce/trunk)
-
tags/1.0.1/README.txt (modified) (3 diffs)
-
tags/1.0.1/api/class-woocommerce-nz-shipping-zones-api.php (modified) (1 diff)
-
tags/1.0.1/api/data/nz-regions.json (modified) (1 diff)
-
tags/1.0.1/woocommerce-nz-shipping-zones.php (modified) (3 diffs)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/api/class-woocommerce-nz-shipping-zones-api.php (modified) (1 diff)
-
trunk/api/data/nz-regions.json (modified) (1 diff)
-
trunk/woocommerce-nz-shipping-zones.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
new-zealand-shipping-zones-for-woocommerce/tags/1.0.1/README.txt
r2812434 r2815669 7 7 Tested up to: 6.1 8 8 Requires PHP: 5.6.2 9 Stable tag: 1.0. 09 Stable tag: 1.0.1 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 75 75 No, deactivating or deleting the plugin will not remove the shipping zones. Shipping zones can be manually removed via WooCommerce > Shipping > Shipping Zones. 76 76 77 = Why did my zone regions for North Island and South Island shipping zones disappear? = 78 79 Region codes were updated in the [WooCommerce 7.1.0 release](https://github.com/woocommerce/woocommerce/pull/35011). Shipping zones configured with this plugin prior to the WooCommerce 7.1.0 release are no longer recognised by WooCommerce. 80 81 The easiest solution is to manually reassign the correct regions for the North Island and South Island zones. 82 77 83 = Where do the postcodes come from? = 78 84 … … 81 87 == Changelog == 82 88 89 = 1.0.1 = 90 91 * Fix: Update region codes for configuring zone regions in North Island and South Island shipping zones. Affects new installs on WooCommerce 7.1.0+. See [Update New Zealand subdivisions in states.php](https://github.com/woocommerce/woocommerce/pull/35011). 92 83 93 = 1.0 = 84 94 -
new-zealand-shipping-zones-for-woocommerce/tags/1.0.1/api/class-woocommerce-nz-shipping-zones-api.php
r2392118 r2815669 100 100 101 101 if ( ! in_array( $zone_name, $all_zone_names, true ) ) { 102 $regions = $this->get_zone_data( 'nz-regions.json' ); 102 if ( version_compare( WC_VERSION, '7.1.0', '<' ) ) { 103 $regions = $this->get_zone_data( 'nz-regions-legacy.json' ); 104 } else { 105 $regions = $this->get_zone_data( 'nz-regions.json' ); 106 } 103 107 104 108 $standard_zone = new WC_Shipping_Zone(); -
new-zealand-shipping-zones-for-woocommerce/tags/1.0.1/api/data/nz-regions.json
r2392118 r2815669 1 1 { 2 "N L": "2",3 "A K": "2",4 "W A": "2",5 "B P": "2",6 "TK ": "2",7 "GI ": "2",8 "H B": "2",9 "MW ": "2",10 "W E": "2",11 "NS ": "3",12 "MB ": "3",13 "T M": "3",14 "W C": "3",15 "C T": "3",16 "OT ": "3",17 "S L": "3"2 "NTL": "2", 3 "AUK": "2", 4 "WKO": "2", 5 "BOP": "2", 6 "TKI": "2", 7 "GIS": "2", 8 "HKB": "2", 9 "MWT": "2", 10 "WGN": "2", 11 "NSN": "3", 12 "MBH": "3", 13 "TAS": "3", 14 "WTC": "3", 15 "CAN": "3", 16 "OTA": "3", 17 "STL": "3" 18 18 } -
new-zealand-shipping-zones-for-woocommerce/tags/1.0.1/woocommerce-nz-shipping-zones.php
r2812434 r2815669 14 14 * Plugin URI: https://wordpress.org/plugins/new-zealand-shipping-zones-for-woocommerce/ 15 15 * Description: Sets up New Zealand standard and rural shipping zones for WooCommerce. 16 * Version: 1.0. 016 * Version: 1.0.1 17 17 * Author: Daniel Shaw 18 18 * Author URI: https://danielshaw.co.nz/ … … 24 24 * Domain Path: /languages 25 25 * WC requires at least: 2.6.0 26 * WC tested up to: 7. 0.126 * WC tested up to: 7.1.0 27 27 */ 28 28 … … 35 35 * The current plugin version. 36 36 */ 37 define( 'WOOCOMMERCE_NZ_SHIPPING_ZONES_VERSION', '1.0. 0' );37 define( 'WOOCOMMERCE_NZ_SHIPPING_ZONES_VERSION', '1.0.1' ); 38 38 39 39 /** -
new-zealand-shipping-zones-for-woocommerce/trunk/README.txt
r2812434 r2815669 7 7 Tested up to: 6.1 8 8 Requires PHP: 5.6.2 9 Stable tag: 1.0. 09 Stable tag: 1.0.1 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 75 75 No, deactivating or deleting the plugin will not remove the shipping zones. Shipping zones can be manually removed via WooCommerce > Shipping > Shipping Zones. 76 76 77 = Why did my zone regions for North Island and South Island shipping zones disappear? = 78 79 Region codes were updated in the [WooCommerce 7.1.0 release](https://github.com/woocommerce/woocommerce/pull/35011). Shipping zones configured with this plugin prior to the WooCommerce 7.1.0 release are no longer recognised by WooCommerce. 80 81 The easiest solution is to manually reassign the correct regions for the North Island and South Island zones. 82 77 83 = Where do the postcodes come from? = 78 84 … … 81 87 == Changelog == 82 88 89 = 1.0.1 = 90 91 * Fix: Update region codes for configuring zone regions in North Island and South Island shipping zones. Affects new installs on WooCommerce 7.1.0+. See [Update New Zealand subdivisions in states.php](https://github.com/woocommerce/woocommerce/pull/35011). 92 83 93 = 1.0 = 84 94 -
new-zealand-shipping-zones-for-woocommerce/trunk/api/class-woocommerce-nz-shipping-zones-api.php
r2392118 r2815669 100 100 101 101 if ( ! in_array( $zone_name, $all_zone_names, true ) ) { 102 $regions = $this->get_zone_data( 'nz-regions.json' ); 102 if ( version_compare( WC_VERSION, '7.1.0', '<' ) ) { 103 $regions = $this->get_zone_data( 'nz-regions-legacy.json' ); 104 } else { 105 $regions = $this->get_zone_data( 'nz-regions.json' ); 106 } 103 107 104 108 $standard_zone = new WC_Shipping_Zone(); -
new-zealand-shipping-zones-for-woocommerce/trunk/api/data/nz-regions.json
r2392118 r2815669 1 1 { 2 "N L": "2",3 "A K": "2",4 "W A": "2",5 "B P": "2",6 "TK ": "2",7 "GI ": "2",8 "H B": "2",9 "MW ": "2",10 "W E": "2",11 "NS ": "3",12 "MB ": "3",13 "T M": "3",14 "W C": "3",15 "C T": "3",16 "OT ": "3",17 "S L": "3"2 "NTL": "2", 3 "AUK": "2", 4 "WKO": "2", 5 "BOP": "2", 6 "TKI": "2", 7 "GIS": "2", 8 "HKB": "2", 9 "MWT": "2", 10 "WGN": "2", 11 "NSN": "3", 12 "MBH": "3", 13 "TAS": "3", 14 "WTC": "3", 15 "CAN": "3", 16 "OTA": "3", 17 "STL": "3" 18 18 } -
new-zealand-shipping-zones-for-woocommerce/trunk/woocommerce-nz-shipping-zones.php
r2812434 r2815669 14 14 * Plugin URI: https://wordpress.org/plugins/new-zealand-shipping-zones-for-woocommerce/ 15 15 * Description: Sets up New Zealand standard and rural shipping zones for WooCommerce. 16 * Version: 1.0. 016 * Version: 1.0.1 17 17 * Author: Daniel Shaw 18 18 * Author URI: https://danielshaw.co.nz/ … … 24 24 * Domain Path: /languages 25 25 * WC requires at least: 2.6.0 26 * WC tested up to: 7. 0.126 * WC tested up to: 7.1.0 27 27 */ 28 28 … … 35 35 * The current plugin version. 36 36 */ 37 define( 'WOOCOMMERCE_NZ_SHIPPING_ZONES_VERSION', '1.0. 0' );37 define( 'WOOCOMMERCE_NZ_SHIPPING_ZONES_VERSION', '1.0.1' ); 38 38 39 39 /**
Note: See TracChangeset
for help on using the changeset viewer.