• Resolved j8bm

    (@jarelle)


    Is there a way to remove the order number section (eg. Order #11155208923?(May 1, 2024)) from the “New Order” template? Also when I add new body text, it doesn’t match what is shown in the preview.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support karlalevelup

    (@karlalevelup)

    Hi there!

    I’d be happy to assist you with this.

    The Order # and date is part of the template, and there is no option to hide it.

    However, this code snippet can help:

    add_filter( 'woocommerce_email_styles', 'add_woocommerce_email_styles', 10, 2 );
    function add_woocommerce_email_styles( $css, $email ) {
        // define the ids of the emails for which you want to add CSS rules
        $email_ids = array(
            'new_order',
        );
        // adds CSS rules to these emails only
        if ( in_array( $email->id, $email_ids ) ) {
            $css .= 'div[id^="body_content_inner"] > h2 { display: none; }';
        }
        return $css;
    }

    It’s from this forum – https://stackoverflow.com/questions/50223952/remove-order-from-woocommerce-order-on-hold-new-order-emails/#answer-66929692

    You can add it to your website using a code snippets plugin – https://www.kadencewp.com/help-center/docs/kadence-theme/how-to-add-a-custom-filter-or-function-with-code-snippets/

    “Also when I add new body text, it doesn’t match what is shown in the preview.”

    Could you send a screenshot for this? If you have a cache plugin on your website, please clear it and see if that will fix the issue.

    Regards,
    Karla

    Plugin Support karlalevelup

    (@karlalevelup)

    Hi there!

    This topic has been inactive for more a while. I’ll proceed to marking this as resolved.

    If you have further questions or need additional assistance, feel free to start a new topic.

    Thank you for your understanding!

    Regards,
    Karla

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove order number section’ is closed to new replies.