Archived topic
remove total and subtotal checkout box
3 replies · Started by Juan Luis on April 9, 2020
Good you know how to delete the subtotal and total checkout box?
Hi there,
This would be a question for WooCommerce support.
I found this that might help:
https://stackoverflow.com/questions/53277895/remove-subtotal-line-from-cart-and-checkout-pages-in-woocommerce
So try:
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'] );
unset($totals['order_total'] );
return $totals;
}
Adding PHP: https://docs.generatepress.com/article/adding-php/o
good read I have inserted the php code with the code snippets plugin, but I have not seen any change in the cart or checkout, thanks
Hmm unfortunately you might have to check with WooCommerce support.
If you are happy with CSS then try this:
.cart_totals h2, .woocommerce-cart .cart-collaterals .cart_totals table {
display: none;
}