• Hello,

    we would like to add some custom shortcodes to your amazing plugin.

    Can you give us a hint, what we need to change to trigger the “processing Order Email”?

    “WC_Emails” are the placeholder we need to adapt here.

    add_filter( 'kadence_woomail_order_body_text', 'custom_function_for_billing_email', 10, 2 );
    function custom_function_for_billing_email( $text, $order ) {
    if ( is_a( $order, 'WC_Emails' ) ) {
    $text = str_replace( '{billing_amount}',  $order->get_formatted_order_total(), $text );
    }
    return $text;
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter espox

    (@espox)

    Edit: We fixed it, but can you say to us how to apply this filter to the additional_content as well?

    Thread Starter espox

    (@espox)

    Edit 2: When we just copy the original email template to our child theme (we dont change nothing) the body text is missing. Is there any conflict?

    hannah

    (@hannahritner)

    Hey,
    Thanks for reaching out and apologies for the delay!
    I’m not sure how to apply your filter to the additional_content, but I can get some insight from a dev.
    As for the body text, are you able to manually add this from the customizer?

    Kindly,
    Hannah

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Variable Custom Shortcodes for Processing Order Template’ is closed to new replies.