This topic has 22 replies, 2 voices, and was last updated 3 years, 4 months ago ago by Farhad
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.
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
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.
Hello,
Check now, please. Do you have all the necessary templates now http://prntscr.com/1hhgokl ?
Regards
All emails related to the Subscription are still missing.
here is an example:
https://paste.pics/5c12bb435c26a8b2f9b524ab355e2e8e
https://paste.pics/9a33f19edb14c85ba98daf6e4693d1d4
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
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.
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
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
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
Hello,
Provide us with working FTP access to your site. We’ll check the issue in more detail.
Regards
Here you are!
Try this please
Hello,
Thank you. I passed your request to our developers. I’ll inform you once they fix the warnings.
Regards
Hello,
Fixed. Check now.
Regards
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!
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
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
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
Very helpful! Thank you very much for your awesome support.
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