Merge pull request #21346 from Spreeuw/patch-6

Fixes #21345
This commit is contained in:
Claudiu Lodromanean 2018-09-24 11:28:01 -07:00 committed by GitHub
commit e597e16e33
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 ( 0 < (float) $this->get_shipping_total() ) {
if ( 0 < abs( (float) $this->get_shipping_total() ) ) {
if ( 'excl' === $tax_display ) {