Forum Replies Created

Viewing 3 replies - 91 through 93 (of 93 total)
  • The plugin relies on the regular woocommerce email editor on Woocommerce -> Settings -> Emails and there is an option to append content at the end (Additional Content). If you are familiar with coding you can use the woocommerce hooks to append content to the email, in this case we can use the hook “woocommerce_email_before_order_table”. Code goes inside the functions.php file inside theme directory

    Here a code sample:

    add_action( ‘woocommerce_email_before_order_table’, ‘brightplugins_add_content_specific_email’, 20, 4 );

    function brightplugins_add_content_specific_email( $order, $sent_to_admin, $plain_text, $email ) {
    if ( $email->id == ‘bvos_custom_Your-Custom-Status-Slug-Goes-Here’ ) {
    echo ‘<h2 class=”email-upsell-title”>Sell Title</h2><p>Content before table</p>’;
    }
    }

    You can discover your email ID checking the URL when editing a Woocommerce Email. The plugin email ID is always “bvos_custom_” + your status slug (the one inserted on the status registration)

    Another available hooks are:
    woocommerce_email_before_order_table
    woocommerce_email_after_order_table
    woocommerce_email_order_meta
    woocommerce_email_footer

    @thejoke26 Hi, accents on slug or only on title got issue? We already tested with accents on status name, but on slug field we should not allow (only numbers also should be not allowed). Could you confirm if on your side is working with accents only on status title? Thanks

    Hi! Thank you for the feedback. We will be sure on fixing this on next release and add the background color as well. Let us know if you find any issue then we can solve it quick!

Viewing 3 replies - 91 through 93 (of 93 total)