Linux 软件免费装
Banner图

VisWapp Chat Widget

开发者 vectorilo
更新时间 2026年10月17日 01:56
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

chat whatsapp abandoned cart lead form whatsapp login

下载

1.4.0 1.3.1

详情介绍:

Paste the install snippet from your VisWapp account and the chat bubble appears on your site. No code to edit.

安装:

  1. In WordPress, go to Plugins → Add New → Upload Plugin, choose viswapp-chat-widget.zip, then Install Now and Activate.
  2. In VisWapp, open Chat Widget, save your widget, and copy the Install snippet.
  3. In WordPress, go to Settings → VisWapp, open the Chat widget tab, paste the snippet, and Save Changes.
  4. In VisWapp, add your site's domain under Chat Widget → Domains & identity → Allowed websites.
  5. Open your site in a private window: the chat bubble appears in the corner.
To identify logged-in customers:
  1. In VisWapp, copy the Identity secret from Chat Widget → Domains & identity.
  2. In WordPress, on the plugin's settings page, turn on "Identify logged-in users", paste the secret, and save.
To add Login with WhatsApp:
  1. In VisWapp, open Integrations → WhatsApp Login. Under Setup add your site's domain to Allowed domains, and add the Redirect URL shown on the plugin's settings page.
  2. Under Developers, copy the Client ID and the Client secret (Reveal).
  3. In WordPress, go to Settings → VisWapp, open the Login with WhatsApp tab, turn it on, paste both, choose where the button shows, and save.
  4. In VisWapp, click Go live when you are ready (test mode works on your allowed domains too).
To add a lead form:
  1. In VisWapp, build and publish a form under Web Forms, and copy its form key (vw_frm_…) from the Share tab.
  2. In WordPress, add the "VisWapp form" block to a page and paste the key, or use the shortcode [viswapp_form id="vw_frm_…"].
  3. Forms use the chat widget's API address. Without the chat widget, paste the form's "Embed on a page" code in Settings → VisWapp → Web forms.
To turn on abandoned cart recovery (WooCommerce):
  1. In VisWapp, open Integrations → WooCommerce → Abandoned carts and copy the Delivery URL and the Webhook secret.
  2. In WordPress, go to Settings → VisWapp, open the WooCommerce tab, turn on "Capture abandoned carts", paste both, and save.
  3. Click "Send test event". "HTTP 200" means VisWapp received a signed test cart.

屏幕截图:

  • The VisWapp chat widget on your store.
  • One-tap "Continue with WhatsApp" login on checkout.
  • Login with WhatsApp settings.
  • Abandoned cart recovery settings for WooCommerce and The WhatsApp reminder with a link that restores the cart.

常见问题:

How do I add a lead form?

Add the "VisWapp form" block and paste the form key (vw_frm_…) from VisWapp → Web Forms → Share, or use [viswapp_form id="vw_frm_…"]. Set mode="popup" for a floating button instead. The form must be published in VisWapp; until then visitors see that it is not accepting responses.

The form says it is not available on this website

The form only allows some websites. In VisWapp → Web Forms → Share → Where can it be embedded?, add your site's domain.

Can I put the WhatsApp login button on my own page?

Yes, with the shortcode: [viswapp_login label="Sign up with WhatsApp" redirect="/my-account/"] Or link any button to /wp-json/viswapp/v1/login/start to use the hosted VisWapp login page.

How are WhatsApp logins matched to users?

By the viswapp_phone user meta (set on first login), then the WooCommerce billing phone. Developers can change this with the viswapp_login_find_user filter, and react to logins with the viswapp_login_success action: add_action( 'viswapp_login_success', function ( $user, $claims ) { // $claims: phone_number, name, whatsapp_opt_in, new_user, ... }, 10, 2 );

The chat bubble doesn't appear

Check that the settings page says "The widget is live on your site", that your domain is in Allowed websites in VisWapp, and that you are not logged in with a role you chose to hide it from. Clear your caching plugin's cache after saving.

Does it work with caching plugins?

Yes. The widget loads in the browser, so cached pages show it. If you identify logged-in users, make sure pages for logged-in visitors are not cached (most caching plugins already skip them).

Can a developer change what is sent for a customer?

Yes, with the viswapp_widget_identity filter. Return null to skip identifying a user: add_filter( 'viswapp_widget_identity', function ( $identity, $user ) { $identity['phone'] = get_user_meta( $user->ID, 'mobile', true ); return $identity; }, 10, 2 ); Use the viswapp_widget_show filter to show or hide the widget on a request: add_filter( 'viswapp_widget_show', function ( $show ) { return $show && ! is_page( 'careers' ); } );

Can I open the chat from my own button?

Yes. Add this to the button's link or a script on the page: Chat with us

Does abandoned cart capture work with caching plugins?

Yes, as long as the cart and checkout pages are not cached (WooCommerce tells caching plugins not to cache them). Carts are sent from the server during the request that changed them, so a cached product page doesn't stop capture.

What happens when I delete the plugin?

Its settings (including the Web forms tab), the saved Identity secret, the WhatsApp Login and abandoned-cart secrets, and saved cart links are removed from WordPress. Chats, contacts and carts stay in VisWapp.

更新日志:

1.4.0 1.3.1 1.3.0 1.2.0 1.1.0 1.0.0