I just change in WooCommerce core files to make my production work which is not a good solution. I modified file plugins/woocommerce/includes/class-wc-cart-totals.php as follows:
FROM:
$shipping_line->total = wc_add_number_precision_deep( $shipping_object->cost );
$shipping_line->taxes = wc_add_number_precision_deep( $shipping_object->taxes, false );
TO:
$shipping_line->total = wc_add_number_precision_deep( $shipping_object->cost ?? 0.00 );
$shipping_line->taxes = wc_add_number_precision_deep( $shipping_object->taxes ?? 0.00, false );
-
This reply was modified 2 years, 3 months ago by saqibidrees.