Built-in email builder | Woo Subscription email templates are missing

This topic has 22 replies, 2 voices, and was last updated 3 years, 4 months ago ago by Farhad

  • Avatar: Farhad
    Farhad
    Participant
    July 27, 2021 at 02:55

    Hi,
    I have the Built-in email builder enabled and works fine for almost all emails. It’s just the emails regarding subscriptions/renewals are all overwritten by the XStore email builder but the templates are not listed like the others.

    Please, contact administrator
    for this information.
    21 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    July 27, 2021 at 15:35

    Hello,

    We use default WooCommerce hooks and functions to load templates. Probably that plugin register emails in different way that other WooCommerce emails and that’s why it’s not available for Email builder. So, contact the plugin author to find our why do they register emails in other way than default WooCommerce emails.

    Regards

    Avatar: Farhad
    Farhad
    Participant
    July 27, 2021 at 16:49

    The plugin is WooCoomcerse Subscriptions by Woocommerce.
    Here is a sample email HTML template description:
    To override and edit this email template copy woocommerce-subscriptions/templates/emails/customer-on-hold-renewal-order.php to your theme folder: xstore-child/woocommerce/emails/customer-on-hold-renewal-order.php.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    July 29, 2021 at 09:13

    Hello,

    Check now, please. Do you have all the necessary templates now http://prntscr.com/1hhgokl ?

    Regards

    Avatar: Farhad
    Farhad
    Participant
    July 29, 2021 at 20:08

    All emails related to the Subscription are still missing.
    here is an example:
    https://paste.pics/5c12bb435c26a8b2f9b524ab355e2e8e
    https://paste.pics/9a33f19edb14c85ba98daf6e4693d1d4

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    July 30, 2021 at 10:13

    Hello,

    Because we don’t have pre-built templates for these emails. You need to create them by yourself (Add new button) and choose the necessary type in the settings http://i.prntscr.com/5B8e_pPwRbCj-lHQPo37dQ.png

    Regards

    Avatar: Farhad
    Farhad
    Participant
    August 9, 2021 at 02:19

    Hi Olga,
    I could create new email templates for the Woocommerece Subscription plugin, thanks for your help.
    However, there are still other plugins with email messages that are not listed on XStore email builder “Email type” drop-down menu.
    here is an example:
    to overwrite copy woocommerce-gateway-stripe/templates/emails/failed-renewal-authentication.php to your theme folder: xstore-child/woocommerce/emails/failed-renewal-authentication.php

    I have copied the file to the XStore emails folder, and the message has changed to:
    This template has been overridden by your theme and can be found in: xstore-child/woocommerce/emails/failed-renewal-authentication.php.

    but yet it doesn’t show up on the editor page email type menu.
    I would be thankful you check this out for me.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    August 9, 2021 at 16:45

    Hello,

    You may copy and change that file only if you want to customize the template without using the email builder. If you want to use builder then remove xstore-child/woocommerce/emails/failed-renewal-authentication.php.

    Add the below code to child theme functions.php to enable template for the email builder

    add_filter('viwec_accept_email_type', function($emails) {
    	$emails[] = 'failed_renewal_authentication';
    	$emails[] = 'failed_preorder_sca_authentication';
    	$emails[] = 'failed_renewal_authentication';
    });

    Regards

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    August 9, 2021 at 16:45

    Hello,

    You may copy and change that file only if you want to customize the template without using the email builder. If you want to use builder then remove xstore-child/woocommerce/emails/failed-renewal-authentication.php.

    Add the below code to child theme functions.php to enable template for the email builder

    add_filter('viwec_accept_email_type', function($emails) {
        $emails[] = 'failed_renewal_authentication';
        $emails[] = 'failed_preorder_sca_authentication';
        $emails[] = 'failed_renewal_authentication';
        return $emails;
    });

    Regards

    Avatar: Farhad
    Farhad
    Participant
    August 9, 2021 at 18:38

    I removed those files from xstore-child/woocommerce/emails and added the code to the functions.php. now there is a new error message that appears on both the Email Builder Templates Page & the Editor pages:

    Warning: in_array() expects parameter 2 to be array, null given in /home/customer/www/choovio.com/public_html/wp-content/plugins/et-core-plugin/packages/woocommerce-email-template-customizer/includes/utils.php on line 149

    Warning: in_array() expects parameter 2 to be array, null given in /home/customer/www/choovio.com/public_html/wp-content/plugins/et-core-plugin/packages/woocommerce-email-template-customizer/includes/utils.php on line 149

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    August 10, 2021 at 18:07

    Hello,

    Provide us with working FTP access to your site. We’ll check the issue in more detail.

    Regards

    Avatar: Farhad
    Farhad
    Participant
    August 10, 2021 at 18:40

    Here you are!

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    August 11, 2021 at 17:55

    Hello,

    WP Dashboard is ok but we can’t connect to your FTP https://prnt.sc/1mxk0z9

    Regards

    Avatar: Farhad
    Farhad
    Participant
    August 11, 2021 at 18:09

    Try this please

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    August 12, 2021 at 13:37

    Hello,

    Thank you. I passed your request to our developers. I’ll inform you once they fix the warnings.

    Regards

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    August 12, 2021 at 14:36

    Hello,

    Fixed. Check now.

    Regards

    Avatar: Farhad
    Farhad
    Participant
    August 13, 2021 at 02:14

    The error message is gone and it’s listed on the drop-down menu, thank you!
    Would you mind help me get the add_filter code for others as well? here is the list:
    – woocommerce-gateway-stripe/templates/emails/failed-renewal-authentication-requested.php
    – woocommerce-gateway-stripe/templates/emails/failed-preorder-authentication.php
    – woocommerce-back-in-stock-notifications/templates/emails/back-in-stock-notification-confirm.php
    – woocommerce-back-in-stock-notifications/templates/emails/back-in-stock-notification-received.php

    appreciate it!

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    August 14, 2021 at 10:36

    Hello,

    Added. Next time you can edit the mentioned filter https://prnt.sc/1ohnf1n by yourself if you need to add any other emails, just add email id to the list

    Regards

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    August 14, 2021 at 10:37

    Hello,

    Added. Next time you can edit the mentioned filter https://prnt.sc/1ohnf1n by yourself if you need to add any other emails, just add email id to the list

    Regards

    Avatar: Farhad
    Farhad
    Participant
    August 14, 2021 at 19:59

    Thank you very much Olga, it all works fine.
    My last question in this thread would be where do I find the email ids in the future?
    like this one: bis_notification_received

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    August 16, 2021 at 12:15

    Hello,

    In the plugin files. For example, https://prnt.sc/1pof0hl

    Regards

    Avatar: Farhad
    Farhad
    Participant
    August 16, 2021 at 17:25

    Very helpful! Thank you very much for your awesome support.

  • Viewing 22 results - 1 through 22 (of 22 total)

The issue related to '‘Built-in email builder | Woo Subscription email templates are missing’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.