Local rates were being ignored if no main rates were set
This commit is contained in:
parent
46653cf957
commit
4f905a0e67
|
@ -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'] = '*';
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue