[Support request] remove total and subtotal checkout box

Home Forums Support [Support request] remove total and subtotal checkout box

Home Forums Support remove total and subtotal checkout box

  • This topic has 3 replies, 2 voices, and was last updated 4 years ago by Leo.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1233105
    Juan Luis

    Good you know how to delete the subtotal and total checkout box?

    #1233130
    Leo
    Staff
    Customer Support

    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

    #1233822
    Juan Luis

    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

    #1234178
    Leo
    Staff
    Customer Support

    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;
    }
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.