• Resolved sanjas

    (@sanjas)


    Hi,

    Email I receive as someone who made an order doesn’t include order data and isn’t styled like the remaining WooCommerce emails (it’s basically an empty email with only title and subject which I set up in the WooCommerce settings > Emails).

    Hope you can help me with the issue.

    Best

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter sanjas

    (@sanjas)

    Doing this https://www.ads-software.com/support/topic/empty-e-mail/ only enabled WooCommerce styling, but the email’s content is still blank.

    Plugin Author Nuggethon

    (@nuggethon)

    Hi @sanjas,

    1) Could you check whether in WooCommerce Settings->Emails on the affected email the email template isn’t missing. If you see at the bottom of the page “HTML Template not found”, try reactivating the plugin and the issue might go away.

    2) If you are using one of the WooCommerce email customizer plugins, try deactivating them and see whether the issue remains. If deactivating the email customizer plugin solves the issue, please let me know the plugin in question.

    3) If previous solutions didn’t help, please download this plugin and resend the email. With this plugin in Tools->WP Mail Log the email will be captured and an exclamation mark in the email row (or in the preview) will most likely have an error message. If it does please let me know the message.

    If you do not make any progress with these steps, please contact me via email at [email protected].

    Thread Starter sanjas

    (@sanjas)

    @nuggethon thank you for a fast reply.

    1) HTML template is successfully found.

    2) We don’t use any email customizer plugin.

    3) In the email log (using the plugin you recommended) I see no errors.

    I did, however, managed to solve the issue by following the same example as offered on the topic.

    In the email-manager.php, I changed

    public function sanitize_email_template($class) 
    	{
    		remove_action( 'email_header', array($class, 'woocommerce_email_header'));
    		remove_action('email_footer', array($class, 'woocommerce_email_footer'));
    		remove_action( 'email_order_details', array( $class, 'woocommerce_order_downloads' ), 10, 4 );
    		remove_action( 'email_order_details', array( $class, 'woocommerce_order_details' ), 10, 4 );
    		remove_action( 'email_order_meta', array( $class, 'woocommerce_order_meta' ), 10, 3 );
    		remove_action( 'email_customer_details', array( $class, 'woocommerce_customer_details' ), 10, 3 );
    		remove_action( 'email_customer_details', array( $class, 'woocommerce_email_addresses' ), 20, 3 );
    	}

    to

    public function sanitize_email_template($class) 
    	{
    		remove_action( 'woocommerce_email_header', array($class, 'woocommerce_email_header'));
    		remove_action('woocommerce_email_footer', array($class, 'woocommerce_email_footer'));
    		remove_action( 'woocommerce_email_order_details', array( $class, 'woocommerce_order_downloads' ), 10, 4 );
    		remove_action( 'woocommerce_email_order_details', array( $class, 'woocommerce_order_details' ), 10, 4 );
    		remove_action( 'woocommerce_email_order_meta', array( $class, 'woocommerce_order_meta' ), 10, 3 );
    		remove_action( 'woocommerce_email_customer_details', array( $class, 'woocommerce_customer_details' ), 10, 3 );
    		remove_action( 'woocommerce_email_customer_details', array( $class, 'woocommerce_email_addresses' ), 20, 3 );
    	}

    That seemed to work since I see all the order details now.

    Plugin Author Nuggethon

    (@nuggethon)

    Well, I’m glad to hear it works now. I’m marking this issue as resolved.

    I’ll try to look more in-depth into this issue since it seems to be reoccurring for multiple users and hopefully come up with a fix, but just in case the fix is not available in the next patch, please update the plugin carefully (preferably on staging site first) and double-check after the update whether the issue does reappear.

    Thread Starter sanjas

    (@sanjas)

    @nuggethon will do. Thank you for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Blank email’ is closed to new replies.