I’m using the pro-child theme, and I have some customs codes in functions.php file.
after I updated pro to the last version my website and WordPress backend is broken like the attached photo.
I have tested all the custom codes until I found the one who caused this problem:
(add_filter( ‘gettext’, ‘wc_billing_field_strings’, 20, 3 );
add_filter( ‘woocommerce_get_order_item_totals’, ‘remove_subtotal_from_orders_total_lines’, 100, 1 );
function remove_subtotal_from_orders_total_lines( $totals ) {
unset($totals[‘cart_subtotal’] );
return $totals;
})
which used to remove subtotal from all checkout pages and emails.
any suggestion, please?
