• Images7ors

    (@s7ors)


    Apparently you cannot reopen topics, so here goes:

    Since I’ve installed WPML, no more mail is sent for pre-orders. Neither the admin nor the customer e-mail notification does work.

    Sending a test e-mail from the WooCommerce settings screen does now work.

    There’s no error or anything, just no e-mail arriving. The standard WooCommerce e-mails are still being sent.

    Can you help me troubleshoot this issue?

    For what it’s worth I’m also using your custom order status plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Imagemathdaniel

    (@mathdaniel)

    Hello,

    I hope you are doing well.

    To provide you with the best support, please follow this instruction:

    On a testing site with only our plugin, WooCommerce, and the Storefront theme, you can perform the test you mentioned. This way, we can rule out internal conflicts or issues with third-party plugins.

    Let us know how it goes.

    Best regards, peace!

    Thread Starter Images7ors

    (@s7ors)

    Well it’s pretty clear already that it’s a conflict with WPML: If I disable WPML the e-mail notifications get sent.

    I’ve added some debugging to the code and it’s clear we’re reaching this point in Checkout.php fine:

    // Sends appropriate pre-order emails.
    WC()->mailer()->get_emails()['WC_New_Customer_Pre_Order_Email']->trigger( $order_id );
    WC()->mailer()->get_emails()['WC_New_Pre_Order_Email']->trigger( $order_id );

    I haven’t dug further yet but I guess WPML somehow breaks something in these templates.

    Note that the default e-mails are sent fine.

    Plugin Support Imagemathdaniel

    (@mathdaniel)

    Dear,

    I hope you are well.

    In that case, this will be reviewed, and we will get in touch with you regarding this matter.

    Best regards, peace!

    Thread Starter Images7ors

    (@s7ors)

    Thank you, In the meantime as a workaround I modified Checkout.php to use the default WC “new order” notifications and these seem to work fine:

            // Sends appropriate pre-order emails.
            // WC()->mailer()->get_emails()['WC_New_Customer_Pre_Order_Email']->trigger( $order_id );
            // WC()->mailer()->get_emails()['WC_New_Pre_Order_Email']->trigger( $order_id );
            // 
            // workaround for custom templates not firing with WPML - rickk 
            WC()->mailer()->get_emails()['WC_Email_Customer_Processing_Order']->trigger( $order_id );
            WC()->mailer()->get_emails()['WC_Email_New_Order']->trigger( $order_id );

    Looking at the email template code I’m a puzzled why your custom notifications don’t work with WPML, it appears to be pretty standard stuff… hoping you guys have a clue.

    Plugin Support Imagemathdaniel

    (@mathdaniel)

    Hi @s7ors,

    I hope you’re doing well.

    Thanks for the information you’ve shared — it’s been helpful for understanding the context.

    This case has already been passed to the development team and is now part of our internal review list. As part of our workflow, we evaluate each report in order, based on its overall relevance and benefit to all users.

    We appreciate your input, and if there are any updates or confirmed adjustments related to this, we’ll be happy to share them here once clarified.

    Best regards,
    Peace!

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.