# B2BKing

[YayMail Addon for B2BKing](https://yaycommerce.com/yaymail-addons/yaymail-addon-for-b2bking/) allows you to customize templates generated by B2BKing plugin (by WebWizards ) in YayMail interface.

**REQUIRED: In addition to these two plugins, here are the WordPress plugins you'll need for this guide.**&#x20;

* WooCommerce
* YayMail (free/pro)
* [B2BKing — Ultimate WooCommerce Wholesale and B2B Solution](https://vi.wordpress.org/plugins/b2bking-wholesale-for-woocommerce/)
* [YayMail Addon for B2BKing](https://yaycommerce.com/yaymail-addons/yaymail-addon-for-b2bking/)&#x20;

<figure><img src="/files/XWW3R3uizC9jrPB0Xbkl" alt=""><figcaption></figcaption></figure>

Apart from the extra blocks, you can add the source content to the email body. Please use those B2BKing shortcodes, which are listed in the **Shortcodes** section. Depending on the template you're editing, this section will display only the shortcodes that are available and compatible with that specific template.

<figure><img src="/files/iKsiBR0KL9lGLu5WrxU7" alt=""><figcaption></figcaption></figure>

B2BKing has one element for information here. You can drag and drop the **B2BKing Information** element to output the data inside the email template.

<figure><img src="/files/LxJDC2KfHxGYLty9L7mb" alt=""><figcaption></figcaption></figure>

The availability of elements depends on the specific template you're editing. Elements that are compatible with the selected template will be enabled, while those that are not applicable will be disabled automatically.

And don't forget to enable and save those templates.

Happy customizing! 🪄


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yaycommerce.com/yaymail/addons/b2bking.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
