is_available() check in local pickup.

This commit is contained in:
Mike Jolley 2015-02-11 18:02:44 +00:00
parent 3e9f06a8eb
commit f57b26cbe6
2 changed files with 2 additions and 1 deletions

View File

@ -173,7 +173,7 @@ class WC_Shipping_Local_Pickup extends WC_Shipping_Method {
$is_available = $this->is_valid_postcode( $package['destination']['postcode'], $package['destination']['country'] );
}
if ( $is_available && $this->get_valid_postcodes() ) {
if ( $is_available ) {
if ( $this->availability === 'specific' ) {
$ship_to_countries = $this->countries;
} else {

View File

@ -143,6 +143,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
* Fix - attribute_public notice before DB upgrade.
* Fix - [products] ids and sku args.
* Fix - Backwards compatibility for (deprecated) $tax variable in WC_Cart.
* Fix - is_available() check in local pickup.
= 2.3.0 - 11/02/2015 =
* Feature - Option to geo-locate the customer's inital location.