Merge pull request #20663 from woocommerce/fix/20652
Check shipping total for 0 using correct type
This commit is contained in:
commit
663a04dfbf
|
@ -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 ) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue