Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter saqibidrees

    (@saqibidrees)

    @envesh thanks for your reply. I downgrade the version it’s currently working fine. but when it is completed by your developer please let me know.

    Thread Starter saqibidrees

    (@saqibidrees)

    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.
Viewing 2 replies - 1 through 2 (of 2 total)