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:
parent
f2150e7c7c
commit
137b01c74c
|
@ -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) :
|
||||
|
||||
|
|
Loading…
Reference in New Issue