Buy B2BKing
$299 $199
You may want to modify B2BKing emails, whether in terms of content, design, or structure. There are several options, depending on what you want to change.
To change email content (text, subject, recipients, placeholders), the easiest option is the built-in B2BKing Emails panel. For more advanced content changes, you can override the PHP templates directly.
To change email design (colors, branding, layout), use a dedicated email designer plugin such as Kadence or YayMail.
The Emails panel lets you control B2BKing email notifications from one place. To access it, go to B2BKing → Settings → Emails, then click on the email you want to edit.
From there you can enable or disable the email, change the recipient, edit the subject, and optionally replace the email body with your own custom content.
By default, B2BKing sends the standard email body for each notification. If you want to replace it with your own text, enable Custom content and write your message in the editor:
Some admin emails include a recipient field. You can enter one email address, or several separated by commas (e.g., [email protected], [email protected]).
Both the email subject and the Custom content editor support placeholders that are replaced automatically when the email is sent. The available placeholders for each email are shown next to the subject field and under the editor. Hover over the (?) tooltip to see the full list.
Examples: {site_title}, {user_email}, {first_name}, {message}, {offer_link}, {review_link}
Registration emails also support placeholders for custom registration fields.
Use {registration_fields} to output all submitted registration fields for the customer (excluding empty fields and file uploads), or {registration_field_ID} to show one specific field such as Company or VAT number. Replace ID with the registration field ID, which you can find in the URL when editing the field in B2BKing. For example: {registration_field_123}.
One popular option is using the free Kadence Email Designer plugin. This plugin can change the design of B2BKing emails, as well as add additional content.
Prebuilt Email Templates
With Kadence, you can enable templates, such as this one:
These templates will be applied to all B2BKing emails (and other site emails).
Furthermore, you can customize specific B2BKing emails:
You cannot modify the existing email text, but you can add additional content. In the example above, we've added "Get started!".
Here's an example of what that looks like with B2BKing's "Your account has been approved" email:
Another option for modifying B2BKing emails is using the YayMail email customizer plugin.
They offer a paid, dedicated solution: "YayMail Addon for B2BKing".
We have only tested their free version, so we haven't directly tested the B2BKing addon. That said, their plugin appears quite advanced and features a drag & drop builder:
They also offer a 30-day money-back guarantee, no questions asked.
If you're looking to make structural or major changes to emails, you can do this by completely customizing the PHP email template.
This is done by copying the email template to your theme folder and editing the template there.
For example:
You can place the template directly under the theme root folder (e.g., wp-content/themes/storefront/template.php), inside a /woocommerce/emails/ subfolder, or inside a /b2bking/ subfolder. Any of these options will work fine.
Note! Using a child theme is recommended to ensure templates are not lost when you update the theme.
Important! For your PHP template override to be used for the email body, Custom content must be disabled for that email in the Emails panel (B2BKing → Settings → Emails).
You may want to display custom field data inside B2BKing emails. For example, it's common to show all registration fields in the email the admin receives when a new user registers.
In registration emails, the user has just submitted the registration form, so the field data is available through $_POST. You can retrieve it like this:
$field = sanitize_text_field($_POST['b2bking_custom_field_1234']); echo $field;
Replace 1234 with the ID of your registration field. You can find this ID (the post ID) in the URL when editing the registration field in B2BKing.
In other emails, such as the "account approved" email, the user is already registered. In this case, the data is no longer in $_POST — it's stored as user meta. You can retrieve it like this:
$field = get_user_meta($user_id, 'b2bking_custom_field_1234', true); echo $field;
Again, replace 1234 with the field ID.
If your store uses manual approval for new accounts, you may have noticed text like this in the WooCommerce new account email:
Attention! Your account requires manual approval. Our team will review it as soon as possible. Thank you for understanding.
This text is not part of a B2BKing email. It is appended by B2BKing to WooCommerce's standard new account email for accounts that are pending approval.
To change it, go to B2BKing → Settings → Language & Text, find the Approval messages section, and edit the New account email field.
Powered by BetterDocs