Local rates were being ignored if no main rates were set

This commit is contained in:
Mike Jolley 2012-04-16 18:55:35 +01:00
parent 46653cf957
commit 4f905a0e67
2 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,7 @@ class WC_Tax {
$flat_rates = array();
$index = 0;
if (!empty($tax_rates)) foreach( $tax_rates as $rate ) :
if ( ! empty( $tax_rates ) ) foreach( $tax_rates as $rate ) :
// Standard Rate?
if ( isset( $rate['class'] ) && !$rate['class']) $rate['class'] = '*';
@ -66,7 +66,7 @@ class WC_Tax {
endforeach;
if ( isset( $rate['countries'] ) && !empty($local_tax_rates)) foreach( $local_tax_rates as $rate ) :
if ( ! empty( $local_tax_rates ) ) foreach( $local_tax_rates as $rate ) :
// Standard Rate?
if (!$rate['class']) $rate['class'] = '*';

View File

@ -180,6 +180,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
* Fix - Do not show the Additional Information tab on product single page if contents are hidden or not existing.
* Fix - nofollow add to cart links to prevent indexing
* Fix - Add to cart shortcode and hidden products
* Fix - Local rates were being ignored if no main rates were set
* Localization - Canada post code locale
* Localization - RMB paypal
* Localization - Bundled translation updates