• Resolved joy0114

    (@joy0114)


    Hi,

    As @vviinnkkoo, I can confirm that the new “modern and previewable email” feature of woocommerce does not seem to be compatible with old email templates.

    Instead of preview zone, it displays “Invalid e-mail type”.

    Obviously, the issue is the same if we change theme for Storefront.
    I understand that this feature will become mandatory as of Woocommerce 9.8.

    Thanks for your help.
    Best regards

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support mathdaniel

    (@mathdaniel)

    Hello,

    I hope you are doing well.

    Thank you for using our plugin, and we are glad to hear it has been helpful.

    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!

    vviinnkkoo

    (@vviinnkkoo)

    @mathdaniel , I did the said test, and the result was the same, I used only your plugin and Woocommerce. But this doesn’t require theme at all, it’s an admin area thing.

    Thread Starter joy0114

    (@joy0114)

    Hi @vviinnkkoo,

    You’re right, it does not matter with theme.

    And I really don’t think it is caused by a conflict with another plugin (other than WC).

    A number of plugins whose functions include sending e-mails have this problem since the appearance of Woocommerce’s “new e-mails” and the possibility of previewing them.

    For exemple “PW Gift Cards” solved the problem quickly, before the release of Woocommerce 9.7.
    Other developers are in the process of solving the same problem for their plugins: I reported it today on a shipping plugin, and its author has identified the problem and will resolve it shortly.

    Even if it’s not too serious, since the mails are still sent (normally), it would be nice if “Custom Order Status Manager for WooCommerce” were also fully compatible.

    Especially as this new e-mail management will become standard as of WC 9.8, i.e. next week.

    Best regards

    Plugin Support mathdaniel

    (@mathdaniel)

    Hello,

    I hope you are doing well.

    To rule out internal conflicts and issues with third-party plugins, I recommend conducting the testing process using only our plugin and WooCommerce, with the Storefront theme. This approach helps ensure that any issues are isolated and easier to diagnose.

    In this case, our plugin and WooCommerce have undergone initial testing and have functioned well. However, we have created an internal ticket for the development team to conduct a more in-depth analysis of the reported issue. This process typically takes 5 to 7 business days, and we will provide you with a more accurate response as soon as possible.

    If you have any further questions or concerns in the meantime, please feel free to reach out.

    I hope you have a fantastic day!

    Best regards, peace!

    • This reply was modified 1 year ago by mathdaniel.
    Thread Starter joy0114

    (@joy0114)

    Hi @mathdaniel,

    Ok, thank you for your approach to the developers.

    A very good day to you too !

    Best regards

    not working on me too.

    Plugin Author Kleinmann

    (@kleinmannbrightvessel)

    Hi guys @vviinnkkoo @joy0114 @alprio,
    I hope you are well

    I checked it and I don’t see any related to the mentioned “Invalid email type” or similar,

    I can see the preview of the email generated by our plugin (custom statuses), also the ‘test email’ is sent and arrives,

    To see what solution we can provide, please:

    Due to forum policies, we are not able to share any credentials, provide files/patches, or sensitive information. Please reach out to our support portal so that we can check in more detail the issue and we can help you.

    – Best Regards

    vviinnkkoo

    (@vviinnkkoo)

    @kleinmannbrightvessel ,

    I’ve tested email preview today, and it’s working, I can’t remember if it was WordPress update, or the plugin update that made it work. But there is a small bug, at least in my case:

    If there are at least two custom statuses, it previews only the last one created, no matter which email you select. I copied email template to theme folder, edited the content of the email, and it’s the same situation as well.

    This raises question if the customers are getting correct email content, but I believe that part is working well. I’m yet to test this to be sure 100% tho.

    Thread Starter joy0114

    (@joy0114)

    Hi,

    Yes, on my side: 2 order status, so 2 different templates, but the same preview…and the same email test sent.
    I did not try in real conditions for the moment.
    Strange.
    But I’m not sure “Custom Order Status Manager for WooCommerce” is the culprit.

    vviinnkkoo

    (@vviinnkkoo)

    It’s sending correct emails on live, I tested multiple versions, and correct ones are being sent, it’s just the preview showing same custom email no matter which one you select.

    I’ve overwritten the original template:

    bp-custom-order-status-for-woocommerce/templates/emails/customer-order-status-email.php

    with my custom one. It’s closer to the new styled emails that were added in Woocommerce recently, except the custom content stuff is added on top, so you can show your email text before order items and meta.

    <?php

    defined( 'ABSPATH' ) or exit;

    /**
    * Default customer order status email template.
    *
    */
    ?>

    <?php do_action( 'woocommerce_email_header', $email_heading, $email );?>

    <?php if ( $email_body_text ?? FALSE ): ?>
    <div id="body_text"><?php echo esc_html( $email_body_text ); ?></div>
    <?php endif;?>

    <h2><?php echo esc_html__( 'Order:', 'bp-custom-order-status' ) . ' #' . $order->get_order_number(); ?></h2>

    <?php
    /**
    * Show user-defined additional content - this is set in each email's settings.
    */
    if ( $additional_content ) {
    echo $email_improvements_enabled ? '<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td class="email-additional-content">' : '';
    echo wp_kses_post( wpautop( wptexturize( $additional_content ) ) );
    echo $email_improvements_enabled ? '</td></tr></table>' : '';
    }

    /*
    * @hooked WC_Emails::order_details() Shows the order details table.
    * @hooked WC_Structured_Data::generate_order_data() Generates structured data.
    * @hooked WC_Structured_Data::output_structured_data() Outputs structured data.
    * @since 2.5.0
    */
    do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );

    /*
    * @hooked WC_Emails::order_meta() Shows order meta data.
    */
    do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email );

    /*
    * @hooked WC_Emails::customer_details() Shows customer details
    * @hooked WC_Emails::email_address() Shows email address
    */
    do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );



    /*
    * @hooked WC_Emails::email_footer() Output the email footer
    */
    do_action( 'woocommerce_email_footer', $email );
    • This reply was modified 12 months ago by vviinnkkoo.
    • This reply was modified 12 months ago by vviinnkkoo.
    • This reply was modified 12 months ago by vviinnkkoo.
Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Email preview not working (woocommerce 9.7.1)’ is closed to new replies.