# 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="https://157604815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJfBhHG_1ipE5lMX4qT%2Fuploads%2FqvzqiRLmPWXLMohhqeT1%2Fimage.png?alt=media&#x26;token=86b8b1bf-0b13-42a7-b1d2-e72cf50ff77e" 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="https://157604815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJfBhHG_1ipE5lMX4qT%2Fuploads%2F6VXyGNdTjHatBwtSeuOw%2Fimage.png?alt=media&#x26;token=9606957d-9e49-4758-a969-2e48ac910704" 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="https://157604815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJfBhHG_1ipE5lMX4qT%2Fuploads%2Ft3Ne7cwyH8q19iu4ddpY%2Fimage.png?alt=media&#x26;token=46826cc1-98eb-4df0-bc43-922b0e6dfe58" 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! 🪄
