Show taxes if there are formatted taxes

The cart only checks if an order has tax when deciding to
display taxes. Subscriptions 1.2+ stores recurring taxes
separately, so when an order has a free trial period
and no sign-up fee, order tax will be 0 but the
recurring taxes should still be displayed.
This commit is contained in:
Brent Shepherd 2012-09-24 12:55:57 +10:00
parent f2150e7c7c
commit 137b01c74c
1 changed files with 2 additions and 2 deletions

View File

@ -121,9 +121,9 @@ $available_methods = $woocommerce->shipping->get_available_shipping_methods();
<?php endif; ?>
<?php
if ($woocommerce->cart->get_cart_tax()) :
$taxes = $woocommerce->cart->get_formatted_taxes();
$taxes = $woocommerce->cart->get_formatted_taxes();
if ( $woocommerce->cart->get_cart_tax() || ! empty( $taxes ) ) :
if (sizeof($taxes)>0) :