Merge pull request #20663 from woocommerce/fix/20652

Check shipping total for 0 using correct type
This commit is contained in:
Rodrigo Primo 2018-06-29 10:48:53 -03:00 committed by GitHub
commit 663a04dfbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1702,7 +1702,7 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
public function get_shipping_to_display( $tax_display = '' ) {
$tax_display = $tax_display ? $tax_display : get_option( 'woocommerce_tax_display_cart' );
if ( $this->get_shipping_total() !== 0 ) {
if ( 0 < (float) $this->get_shipping_total() ) {
if ( 'excl' === $tax_display ) {