Better Messages for Dokan: Live Chat for Marketplace Vendors
The Dokan integration for Better Messages adds a Live Chat button to every Dokan product page, vendor shop page, and vendor dashboard tab — so customers can ask a question before checkout and vendors can reply from inside their own dashboard. The integration is enabled with a single toggle, works on both the free and WebSocket versions of Better Messages, and uses Dokan's own vendor avatars and shop-profile links inside the messenger.
To install the plugin ensure that your website running:
- WordPress 5.9 or newer
- PHP 7.4 or newer
Installation#
How to install Dokan#
Download Dokan from the official website and install it through the standard WordPress plugin installation process.
How to install Better Messages with Dokan#
- Install the Better Messages plugin through the WordPress plugins screen, or upload the plugin files to
/wp-content/plugins/bp-better-messages. - Activate the plugin through the Plugins screen in WordPress.
- Use the Better Messages → Settings menu to configure the plugin.
- Go to Settings → Integrations → WooCommerce, find the Dokan Marketplace Integration section and turn on Vendor Live Chat. To place the button yourself instead, leave it off and use the
[better_messages_dokan_product_button]shortcode. When Dokan is the active marketplace plugin, this section is sorted to the top of the WooCommerce sub-tab.
Supported features#
When you install Dokan plugin with Better Messages:
- Vendors get a new setting in Shop Configuration to enable Live Chat for their shop
- When Live Chat is enabled in Shop Configuration, a Live Chat tab appears on the vendor dashboard
- All vendor avatars in the Better Messages interface are automatically displayed from Dokan vendor shop profiles
- All links to vendors in the Better Messages interface automatically point to the Dokan vendor shop profile
Live Chat tab on the vendor dashboard#
The integration adds a Live Chat tab to the Dokan vendor dashboard, embedding the full Better Messages interface so vendors never leave their dashboard to reply to customers.
Live Chat button on product pages#
A Live Chat button is added to every product sold by a vendor. If you use a custom page builder or the button does not auto-render due to template differences, use this shortcode to place it manually:
[better_messages_dokan_product_button]
Moving the button somewhere else. If you place the button with the shortcode, the automatic one still shows too. You have two ways to remove it:
- Turn off Settings → Integrations → WooCommerce → Dokan Marketplace Integration → Vendor Live Chat. The shortcode keeps working, but this also removes the button on the vendor shop page and the Live Chat tab in the vendor dashboard.
- To remove only the automatic product page button and keep everything else, add this snippet with the Code Snippets plugin or in your theme's
functions.php:
add_action( 'wp', function(){
if( class_exists( 'Better_Messages_Dokan' ) ){
remove_action( 'woocommerce_single_product_summary', array( Better_Messages_Dokan::instance(), 'product_page_contact_button' ), 35 );
}
} );
Live Chat button on the vendor shop page#
A Live Chat button is added to every vendor shop page so customers browsing a vendor's full catalog can start a conversation without first picking a product.
Video walkthrough#
Free vs WebSocket version for Dokan stores#
| Feature | Free version | WebSocket version |
|---|---|---|
| Live Chat on product / shop / dashboard | yes | yes |
| Per-vendor enable / disable | yes | yes |
| Vendor avatars and profile links from Dokan | yes | yes |
| Product context card in threads | yes | yes |
| Support for Dokan 4.x and 5.0+ | yes | yes |
| Real-time delivery | polling | instant |
| Mini-widget popup chat | — | yes |
| One-on-one voice and video calls inside the thread | — | yes |
| Group voice and video calls (vendor team) | — | yes |
| Web push notifications for new messages | — | yes |
| Read receipts | — | yes |
| End-to-end encryption (optional) | — | yes |
For Dokan marketplaces where vendors compete on responsiveness, the WebSocket version's instant delivery plus web push pulls vendors in even when their dashboard is closed — and the mini-widget popup keeps the customer on the product page while they wait for a reply.
Frequently asked questions#
Can customers message a vendor without registering?#
Yes — enable Guest access in Better Messages → Settings → General → Guest Chat. A first-time customer enters a name and email, then chats with the vendor. The thread is preserved if they later register.
Can vendors message each other?#
Yes. The vendor dashboard chat is a full messenger, not a vendor-to-customer-only widget. Vendors can also be added to group conversations.
Does it work with WooCommerce subscriptions and bookings?#
Yes — Dokan's WooCommerce extensions do not change the product page template hook that Better Messages uses. If you have heavily customized the product template, place the shortcode above manually.



