Zero tax check in totals.php
This commit is contained in:
parent
a3cf7743bf
commit
023ee52246
|
@ -566,7 +566,8 @@ class WC_Cart {
|
|||
$taxes = $this->get_taxes();
|
||||
|
||||
foreach ( $taxes as $key => $tax )
|
||||
$taxes[$key] = woocommerce_price( $tax );
|
||||
if ( $tax > 0 )
|
||||
$taxes[$key] = woocommerce_price( $tax );
|
||||
|
||||
return apply_filters( 'woocommerce_cart_formatted_taxes', $taxes, $this );
|
||||
}
|
||||
|
|
|
@ -173,6 +173,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
|||
* Fix - Visibility setting for products in widgets
|
||||
* Fix - Allow translating of # in order numbers
|
||||
* Fix - Make United States label in JS translatable, as it might change
|
||||
* Fix - Zero tax check in totals.php
|
||||
|
||||
= 1.5.7.1 - 14/06/2012 =
|
||||
* Fix - Saving Mijireh settings bug
|
||||
|
|
|
@ -120,7 +120,6 @@ $available_methods = $woocommerce->shipping->get_available_shipping_methods();
|
|||
|
||||
foreach ($taxes as $key => $tax) :
|
||||
if ($woocommerce->cart->tax->is_compound( $key )) : $has_compound_tax = true; continue; endif;
|
||||
if ($tax==0) continue;
|
||||
?>
|
||||
<tr class="tax-rate tax-rate-<?php echo $key; ?>">
|
||||
<th>
|
||||
|
@ -148,7 +147,6 @@ $available_methods = $woocommerce->shipping->get_available_shipping_methods();
|
|||
|
||||
foreach ($taxes as $key => $tax) :
|
||||
if (!$woocommerce->cart->tax->is_compound( $key )) continue;
|
||||
if ($tax==0) continue;
|
||||
?>
|
||||
<tr class="tax-rate tax-rate-<?php echo $key; ?>">
|
||||
<th>
|
||||
|
|
Loading…
Reference in New Issue