How do I integrate the emails added by Yith plugins to your email builder ?

This topic has 11 replies, 4 voices, and was last updated 4 days, 22 hours ago ago by Samir Malik

  • Avatar: Chris0483
    Chris0483
    Participant
    July 9, 2025 at 14:02

    Hello

    Could you please tell me how to add emails created by third-party solutions (such as a plugin) to the email builder?

    We use Yith Advanced Refund System & YITH WooCommerce Points and Rewards & Back in stock notify e.g. Because I need to customize text and design

    Best regards
    Chris

    Please, contact administrator
    for this information.
    10 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 10, 2025 at 06:42

    Hello @Chris0483,

    Thank you for reaching out.

    Please try the solution provided in the following response:
    https://www.8theme.com/topic/order-statuses-for-other-add-ons-do-not-appear-on-the-email-creator-page/#post-432960

    If you require any further assistance, kindly provide us with FTP access so that we can investigate the issue more thoroughly and offer you an appropriate solution.

    Best regards,
    The 8Theme Team

    Avatar: Chris0483
    Chris0483
    Participant
    July 10, 2025 at 09:12

    Hello
    Thanks to your reply.
    I try it : add_filter(‘viwec_accept_email_type’, function($emails) {
    $emails[] = ‘yith_ars_new_request_admin_email’;
    $emails[] = ‘yith_ars_new_message_admin_email’;
    return $emails;
    });

    But there is no change in builder emails.
    I give you the ftp access to check to that.
    Thanks a lot
    Chris

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    July 13, 2025 at 08:43

    Dear @Chris0483,

    We hope this message finds you well.

    Please accept our apologies for the delayed response, as our team was out of office over the weekend.

    We have updated the custom code as shown below, and it is now functioning as expected:

    
    add_filter('viwec_register_email_type', 'n2t_viwec_register_email_type');
    function n2t_viwec_register_email_type($emails){
        $emails['yith_ars_new_request_admin_email'] = [
            'name' => __( 'YITH Advanced Refund System: New request - email for admin', 'xstore-core' ),
        ];
        $emails['yith_ars_new_message_admin_email'] = [
            'name' => __( 'YITH Advanced Refund System: New message - email for admin', 'xstore-core' ),
        ];
        return $emails;
    }
    
    add_filter('viwec_accept_email_type', function($emails) {
        $emails[] = 'yith_ars_new_request_admin_email';
        $emails[] = 'yith_ars_new_message_admin_email';
        return $emails;
    }, 100);
    
    add_filter('viwec_admin_email_types', function($emails) {
        $emails[] = 'yith_ars_new_request_admin_email';
        $emails[] = 'yith_ars_new_message_admin_email';
        return $emails;
    }, 100);
    

    Could you kindly review the changes and let us know if everything looks good on your end?

    Thank you for your time and support.

    Best regards,
    The 8Theme Team

    Avatar: Chris0483
    Chris0483
    Participant
    September 8, 2025 at 11:17

    Hello

    Sorry for my late reply. Your code works fine but if I try to add the other YITH email, they don’t appear in the manufacturer: this is the code I added : `add_filter(‘viwec_register_email_type’, ‘n2t_viwec_register_email_type’);
    function n2t_viwec_register_email_type($emails){
    $emails[‘yith_ars_new_request_admin_email’] = [
    ‘name’ => __( ‘YITH Advanced Refund System: New request – email for admin’, ‘xstore-core’ ),
    ];
    $emails[‘yith_ars_new_message_admin_email’] = [
    ‘name’ => __( ‘YITH Advanced Refund System: New message – email for admin’, ‘xstore-core’ ),
    ];
    $emails[‘yith_ars_new_request_user_email’] = [
    ‘name’ => __( ‘YITH Advanced Refund System: New request – email for user’, ‘xstore-core’ ),
    ];
    $emails[‘yith_ars_new_message_user_email’] = [
    ‘name’ => __( ‘YITH Advanced Refund System: New message – email for user’, ‘xstore-core’ ),
    ];
    $emails[‘yith_ars_processing_user_email’] = [
    ‘name’ => __( ‘YITH Advanced Refund System: Request Processing – email for user’, ‘xstore-core’ ),
    ];
    $emails[‘yith_ars_processing_user_email’] = [
    ‘name’ => __( ‘YITH Advanced Refund System: Request Processing – email for user’, ‘xstore-core’ ),
    ];
    $emails[‘yith_ars_on_hold_user_email’] = [
    ‘name’ => __( ‘YITH Advanced Refund System: On hold request – email for user’, ‘xstore-core’ ),
    ];
    return $emails;
    }

    add_filter(‘viwec_accept_email_type’, function($emails) {
    $emails[] = ‘yith_ars_new_request_admin_email’;
    $emails[] = ‘yith_ars_new_message_admin_email’;
    $emails[] = ‘yith_ars_new_request_user_email’;
    $emails[] = ‘yith_ars_new_message_user_email’;
    $emails[] = ‘yith_ars_processing_user_email’;
    $emails[] = ‘yith_ars_on_hold_user_email’;
    return $emails;
    }, 100);

    add_filter(‘viwec_admin_email_types’, function($emails) {
    $emails[] = ‘yith_ars_new_request_admin_email’;
    $emails[] = ‘yith_ars_new_message_admin_email’;
    $emails[] = ‘yith_ars_new_request_user_email’;
    $emails[] = ‘yith_ars_new_message_user_email’;
    $emails[] = ‘yith_ars_processing_user_email’;
    $emails[] = ‘yith_ars_on_hold_user_email’;
    return $emails;
    }, 100);`

    I need to add other YITH email, and all email for your function back in stock notifiy.

    Thanks to your helps
    Best regards
    Chris

    Avatar: Justin
    Luca Rossi
    Support staff
    September 8, 2025 at 12:10

    Dear @Chris0483,

    We hope this message finds you well.

    We would like to inform you that the new email types are now visible in the dropdown menu, as shown in the following screenshot: https://prnt.sc/XSyVEpeMW6GB.

    Have you had the opportunity to try creating a new email using the builder?

    Please let us know if you need any assistance.

    Best regards,
    The 8Theme Team

    Avatar: Chris0483
    Chris0483
    Participant
    November 26, 2025 at 17:20

    Hello

    Sorry for my late reply. So we added this code : ` __(‘YITH Advanced Refund System: New request – email for admin’, ‘xstore-core’),
    ];
    $emails[‘yith_ars_new_message_admin_email’] = [
    ‘name’ => __(‘YITH Advanced Refund System: New message – email for admin’, ‘xstore-core’),
    ];
    $emails[‘yith_ars_new_request_user_email’] = [
    ‘name’ => __(‘YITH Advanced Refund System: New request – email for user’, ‘xstore-core’),
    ];
    $emails[‘yith_ars_new_message_user_email’] = [
    ‘name’ => __(‘YITH Advanced Refund System: New message – email for user’, ‘xstore-core’),
    ];
    $emails[‘yith_ars_processing_user_email’] = [
    ‘name’ => __(‘YITH Advanced Refund System: Request Processing – email for user’, ‘xstore-core’),
    ];
    $emails[‘yith_ars_on_hold_user_email’] = [
    ‘name’ => __(‘YITH Advanced Refund System: On hold request – email for user’, ‘xstore-core’),
    ];
    $emails[‘yith_ars_approved_user_email’] = [
    ‘name’ => __(‘YITH Advanced Refund System: E-mail de demande de remboursement Accepté – email for user’, ‘xstore-core’),
    ];
    $emails[‘yith_ars_rejected_user_email’] = [
    ‘name’ => __(‘YITH Advanced Refund System: E-mail de demande de remboursement Refusé – email for user’, ‘xstore-core’),
    ];
    $emails[‘yith_ars_coupon_user_email’] = [
    ‘name’ => __(‘YITH Advanced Refund System: E-mail envoi code promotionnel – email for user’, ‘xstore-core’),
    ];
    return $emails;
    }

    add_filter(‘viwec_accept_email_type’, function($emails) {
    $emails[] = ‘yith_ars_new_request_admin_email’;
    $emails[] = ‘yith_ars_new_message_admin_email’;
    $emails[] = ‘yith_ars_new_request_user_email’;
    $emails[] = ‘yith_ars_new_message_user_email’;
    $emails[] = ‘yith_ars_processing_user_email’;
    $emails[] = ‘yith_ars_on_hold_user_email’;
    $emails[] = ‘yith_ars_approved_user_email’;
    $emails[] = ‘yith_ars_rejected_user_email’;
    $emails[] = ‘yith_ars_coupon_user_email’;
    return $emails;
    }, 100);

    add_filter(‘viwec_admin_email_types’, function($emails) {
    $emails[] = ‘yith_ars_new_request_admin_email’;
    $emails[] = ‘yith_ars_new_message_admin_email’;
    return $emails;
    }, 100);

    add_filter(‘viwec_user_email_types’, function($emails) {
    $emails[] = ‘yith_ars_new_request_user_email’;
    $emails[] = ‘yith_ars_new_message_user_email’;
    $emails[] = ‘yith_ars_processing_user_email’;
    $emails[] = ‘yith_ars_on_hold_user_email’;
    $emails[] = ‘yith_ars_approved_user_email’;
    $emails[] = ‘yith_ars_rejected_user_email’;
    $emails[] = ‘yith_ars_coupon_user_email’;
    return $emails;
    }, 100);`

    But all admin emails are not assigned to the admin in your email builder, and every email sent does not use its template but uses the default template. If I go to /wp-admin/admin.php?page=wc-settings&tab=email and click on the button “Edit with XStore Email Maker”, a new empty template is opened instead of the template that was already created.

    Can help us please ?

    Best regards

    Chris

    Content is visible for topic creator and
    support staff only.
    Avatar: Samir Malik
    Samir Malik
    Support staff
    November 27, 2025 at 03:42

    Hello @Chris0483,

    We kindly request your permission to create a temporary administrator account for the English language in the backend. The account will be deleted once the necessary work has been completed.

    We will inform you once the integration has been completed.

    Best regards,
    The 8Theme Team

    Content is visible for topic creator and
    support staff only.
    Avatar: Samir Malik
    Samir Malik
    Support staff
    November 27, 2025 at 11:05

    Hello @Chris0483,

    We have accessed your Email Builder dashboard and found the following:

    https://prnt.sc/X6xu-X7_FcFk

    Could you please confirm whether these email templates are not functioning correctly?

    Best regards,
    The 8Theme Team

    Avatar: Chris0483
    Chris0483
    Participant
    November 28, 2025 at 14:37

    Hello

    All YITH plugin not works with the emmail builder.

    Greatings

    Avatar: Samir Malik
    Samir Malik
    Support staff
    November 28, 2025 at 17:28

    Hello @Chris0483,

    After reviewing the website’s backend, we have confirmed that the emails are correctly assigned with IDs and names to the templates and should function properly.

    We kindly ask you to verify whether these emails work correctly when our XStore: Email Customizer is disabled and to provide an example of such emails. Please also note that the emails may have been sent but could be located in the “Spam” folder of your mail platform due to customized, non-default email content.

    Additionally, you may contact your hosting provider to check the email logs, as there might be a server-related issue preventing the emails from being sent.

    Best regards,
    8Theme Team

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

You must be logged in to reply to this topic.Log in/Sign up

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