• I need to disable woocommerce mails. In other words, the plugin only sends wordpress emails to a new user, to change the password …

Viewing 6 replies - 1 through 6 (of 6 total)
  • Are you using latest version?

    Thread Starter estereconectados

    (@estereconectados)

    yes, versio 1.3.2.1

    Thread Starter estereconectados

    (@estereconectados)

    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.

    Thread Starter estereconectados

    (@estereconectados)

    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!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘disable woocommerce emails’ is closed to new replies.