• Resolved Wayne Thorley

    (@waynusanus)


    Awesome plugin!

    To make the emails more consistent with the ones going out from WooCommerce do you think you could add a filter to the email body?

    That would enable me to wrap the body in WooCommerce styling:

    add_filter( 'cart_abandonment_recovery_email_body', 'wrap_email_body' );

    function wrap_email_body( $message ) {
    
      $heading = 'Blah blah blah';
      $mailer = WC()->mailer();
      $wrapped_message = $mailer->wrap_message($heading, $message);
      $wc_email = new WC_Email;
      $html_message = $wc_email->style_inline($wrapped_message);
    
      return $html_message;
    
    }

    Makes for a more consistent customer experience with all emails branded up in the same way.

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Support CartFlows Team

    (@cartflows)

    Hello @waynusanus,

    Thank you for reaching out to us.

    We will look into this requirement, we’ll check it, and if found compatible, then we will add this in our upcoming releases.

    Thank You!

Viewing 1 replies (of 1 total)
  • The topic ‘Feature Request – Add Filter for Email Body’ is closed to new replies.