How to edit email templates for 3rd party plugins using Xstore email builder

This topic has 4 replies, 2 voices, and was last updated 2 weeks, 2 days ago ago by Jack Richardson

  • Avatar: choc
    choc
    Participant
    December 5, 2024 at 23:54

    Hi I have a 3 part question.

    1. I’m using the B2BKing plugin and there are emails/templates that this plugin uses that I can’t edit using your Built-in Email Builder. Is there a way I can move the PHP files or something to a different location so your editor can access them? Here’s what I mean: https://ibb.co/ck8szr9
    The files are under /wp-content/plugins/b2bking/includes/emails/templates/

    2. B2BKing recommends using Kadence Email Designer but when I activate that plugin, it simply navigates to an Xstore UI that appears to be the Kadence Email Designer but I can’t actually switch which template I want to edit. https://ibb.co/yFx7Rkq Is this a plugin conflict or is there a way I can change which template I want to edit? I specifically need to edit the B2BKing emails. Here’s documentation on B2BKing: https://woocommerce-b2b-plugin.com/docs/how-to-customize-b2bking-emails/

    3. B2BKing says the following (from the above link)
    If you’re looking to make structural changes or major changes to emails, you can do this by completely customizing the PHP email template.
    – Go to wp-content/plugins/b2bking/includes/emails/templates/
    – Copy a template such as “new-customer-email-template.php”
    – Paste it in your theme folder, such as wp-content/themes/storefront/
    – Modify the PHP template under the theme folder in any way you want
    – Note! There is a folder difference between B2BKing and WooCommerce emails! WooCommerce email templates have to be copied to wp-content/themes/storefront/woocommerce/emails/ (note that B2BKing email templates are copied directly under the theme folder)
    My question is: where is the proper xstore folder path to accomplish this instead of the storefront theme?

    Sorry for a longwinded ticket. Appreciate any assistance here!

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    December 6, 2024 at 14:24

    Hello @choc

    Could you please, provide us the FTP access so we could check the solutions for such issue ?

    Kind regards, Jack Richardson

    Avatar: choc
    choc
    Participant
    December 6, 2024 at 16:28

    thanks – sharing details

    Please contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    December 9, 2024 at 15:22

    Hello @choc

    We have added next custom php snippet in your child-theme/functions.php

    add_filter('viwec_accept_email_type', function($email_types) {
    	$email_types[] = 'b2bking_new_offer_email';
    	$email_types[] = 'b2bking_your_account_approved_email';
    	$email_types[] = 'b2bking_new_message_email';
    	$email_types[] = 'b2bking_new_customer_requires_approval_email';
    	$email_types[] = 'b2bking_new_customer_email';
    	return $email_types;
    });

    Please, check the list of emails in our XStore email builder editor.

    Kind regards, Jack Richardson
    The 8theme’s team

  • Viewing 4 results - 1 through 4 (of 4 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.