Skip to content

Commit

Permalink
v1.3 - matches wordpress.org and oik-plugins
Browse files Browse the repository at this point in the history
Fix for Notice: undefined offset at line 331
  • Loading branch information
bobbingwide committed Jul 7, 2015
1 parent 0ce8d18 commit 9ec8ff5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Tags: woocommerce, commerce, ecommerce, shipping, weight, country, shop
* Requires at least: 3.9
* Tested up to: 4.2.2
* Stable tag: 1.2
* Stable tag: 1.3
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -18,6 +18,7 @@ You can group countries that share same delivery costs (e.g. USA and Canada, Eur
set the shipping costs on a per-country basis.

# Features

New in version 1.2

* Ability to set zero cost shipping for certain weight ranges
Expand Down Expand Up @@ -129,6 +130,8 @@ and [Multi rate weight/country shipping for WooCommerce FAQ's](http://www.oik-pl
4. Enable Shipping Debug Mode when modifying rates

## Upgrade Notice
# 1.3
Upgrade to v1.3 if you get Notices due to missing Method title in rate line

# 1.2
Upgrade if v1.1 caused Fatal errors or if you want to set zero cost shipping for certain weight bands
Expand Down Expand Up @@ -161,6 +164,8 @@ Required for WooCommerce 2.1 and above. Tested with WooCommerce 2.0 and WooComme
Required for WooCommerce 2.1 and above.

## Changelog
# 1.3
* Fixed: Notice: Undefined offset from line 331

# 1.2
* Fixed: Responds to 'woocommerce_init' rather than 'init'
Expand Down
5 changes: 4 additions & 1 deletion oik-weightcountry-shipping.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: oik Weight/Country Shipping
* Plugin URI: http://www.oik-plugins.com/oik-plugins/oik-weightcountry-shipping
* Description: WooCommerce extension for Weight/Country shipping
* Version: 1.2
* Version: 1.3
* Author: bobbingwide
* Author URI: http://www.oik-plugins.com/author/bobbingwide
* License: GPL2
Expand Down Expand Up @@ -233,6 +233,9 @@ function get_rates_by_countrygroup( $country_group = null ) {
$rate[$key] = trim( $val );
}
if ( isset( $rate[2] ) && $rate[2] == $country_group ) {
if ( !isset( $rate[3] ) ) {
$rate[3] = null;
}
$countrygroup_rate[] = $rate;
$this->set_countrygroup_title( $rate );
}
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: http://www.oik-plugins.com/oik/oik-donate/
Tags: woocommerce, commerce, ecommerce, shipping, weight, country, shop
Requires at least: 3.9
Tested up to: 4.2.2
Stable tag: 1.2
Stable tag: 1.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -130,6 +130,8 @@ and [Multi rate weight/country shipping for WooCommerce FAQ's](http://www.oik-pl
4. Enable Shipping Debug Mode when modifying rates

== Upgrade Notice ==
= 1.3 =
Upgrade to v1.3 if you get Notices due to missing Method title in rate line

= 1.2 =
Upgrade if v1.1 caused Fatal errors or if you want to set zero cost shipping for certain weight bands
Expand Down Expand Up @@ -162,6 +164,8 @@ Required for WooCommerce 2.1 and above. Tested with WooCommerce 2.0 and WooComme
Required for WooCommerce 2.1 and above.

== Changelog ==
= 1.3 =
* Fixed: Notice: Undefined offset from line 331

= 1.2 =
* Fixed: Responds to 'woocommerce_init' rather than 'init'
Expand Down

0 comments on commit 9ec8ff5

Please sign in to comment.