Are you using latest version?
Yes. I want woocommerce to keep its styles in mailing. If I activate the plugin the emails have the style of the plugin and I don’t need that.
Hello, can you give me support?
Hello can you try placing this code in your theme’s functions.php file
if( class_exists('Mailtpl') ) {
add_action('init',function(){
$mailtpl = Mailtpl::instance();
remove_action( 'woocommerce_email', array( $mailtpl->admin, 'woocommerce_integration'));
remove_action( 'woocommerce_email_settings', array( $mailtpl->admin, 'woocommerce_preview_link'));
});
add_filter('woocommerce_mail_content',function($content){
$mailtpl = Mailtpl::instance();
remove_action( 'phpmailer_init', array( $mailtpl->mailer, 'send_email',50));
return $content;
});
}
Hi, thanks for this lovely plugin.
Disabling the template for woocommerce with thus function doesn’t work for me. I would like to preserve my woocommerce styling, including header and footer so now I receive emails with woo being inside the container of the general WP template (two heads, two logos etc).
Can you help?
Thanks!