• Is it possible to remove / hide the subtotal field with CSS?

    I sell digital downloads, so shipping is free. Hence, the subtotal is always the same as the total.

Viewing 5 replies - 1 through 5 (of 5 total)
  • hannah

    (@hannahritner)

    Hey,
    Try adding this to your CSS:

    th.td.tlabel-subtotal, td.td.tvalue-subtotal {
        display: none;
    }

    Hope that helps!

    Hannah

    Thread Starter krismali

    (@krismali)

    Thank you, Hannah, that totally worked!

    Also, is there a way to change “Billing address” to “Contact information”. Since I sell digital products, I only collect name and email address at checkout, so “billing address” sounds odd.

    Thanks for your help!

    pumpky

    (@laitnesse2020)

    add_filter( ‘gettext’, ‘replace_text’, 80, 3 );
    function replace_text( $translated_text, $text, $domain ) {
    if ($domain == ‘kadence-woocommerce-email-designer’) {
    switch ($translated_text) {
    case ‘Billing address’:
    $translated_text = __(‘Contact information’, ‘kadence-woocommerce-email-designer’);
    break;
    }
    }
    return $translated_text;
    }

    Thread Starter krismali

    (@krismali)

    Unfortunately, this code didn´t work!

    Actually, I´d rather hide this section at all than change the title. Is it possible to do it with CSS?

    hannah

    (@hannahritner)

    Hey @krismali,
    You can use this css to hide the address container:

    td.address-container {
        display: none;
    }

    Hope that helps!

    Best,
    Hannah

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Remove subtotal’ is closed to new replies.