Zaptilo – Order Notifications & Cart Recovery for WooCommerce

By zaptilo

0+ active installationsVersion 0.1.0

Send WhatsApp order updates, COD confirmations and abandoned-cart reminders from WooCommerce using approved Zaptilo templates.

Description

Zaptilo – Order Notifications & Cart Recovery for WooCommerce connects your store to your Zaptilo WhatsApp Business account. It sends approved template messages only, so your messages are not rejected for being outside WhatsApp’s 24-hour window.

Features:

  • Order messages for Pending, Processing, On hold, Completed, Cancelled, Refunded and Failed. Each status has its own template, language and variables.
  • Cash on Delivery confirmation right after the order is placed.
  • “Send me order updates on WhatsApp” opt-in checkbox on the classic checkout and the block checkout (WooCommerce 8.9 or newer).
  • Abandoned-cart reminders on the classic checkout, with a recovery link that restores the cart and opens the checkout.
  • Dynamic URL button support: pass an order key, order number or cart token as the button suffix.
  • Messages are queued with Action Scheduler (bundled with WooCommerce) so checkout is never slowed down, and each message is sent at most once.
  • Private order notes show what was sent (phone numbers are masked) or why it failed.
  • Compatible with High-Performance Order Storage (HPOS).

You need a Zaptilo account, a connected WhatsApp number and approved templates. See the FAQ.

External services

This plugin connects to the Zaptilo WhatsApp messaging service (https://zaptilo.ai/) to send the WhatsApp messages you configure. It is the only external service the plugin contacts. The default address is https://web.zaptilo.ai and it can be changed in WooCommerce > Settings > Zaptilo. The plugin has no tracking or telemetry.

What is sent and when:

  • When an enabled order message fires (an order changes to a status you enabled, or a Cash on Delivery order is placed): the customer’s billing phone number, and the template name, language and the template variables you chose, which can include the customer’s first and last name, order number, order total, order date, payment method, product names and quantities, shop name, order link, order key and tracking number. This only happens if the customer opted in at checkout (unless you turn off “Require opt-in”).
  • When an abandoned-cart reminder is due: the phone number, first name, cart total and product names and quantities of a shopper who entered a phone number on the checkout and ticked the WhatsApp opt-in, plus a random token used in the recovery link.
  • When you press “Test connection” in the settings: your API token is sent to Zaptilo to request the list of your templates.

Your API token is sent in the Authorization header of each request.

Endpoints used (relative to the base URL):

  • POST /api/send/template sends one approved template message.
  • GET /api/templates lists your approved templates (used by “Test connection”).

Messages are delivered to WhatsApp by Zaptilo using your own WhatsApp Business account. Zaptilo also handles the data it receives under its own terms.

  • Zaptilo service: https://zaptilo.ai/
  • Zaptilo terms of use: https://zaptilo.ai/terms
  • Zaptilo privacy policy: https://zaptilo.ai/privacy

Abandoned-cart data (phone, first name, cart contents) is stored in your own site’s database in the table {prefix}zaptilo_carts, only for shoppers who opted in, and is deleted after 30 days or when the plugin is uninstalled.

Privacy

The plugin adds suggested text to Settings > Privacy explaining what is shared with Zaptilo. The opt-in checkbox (“Send me order updates on WhatsApp”) is unticked by default. Orders and cart data stay in your own database; see “External services” above for what is sent to Zaptilo.

Installation

  1. Upload the zaptilo-order-notifications folder to /wp-content/plugins/, or install the zip from Plugins > Add New > Upload.
  2. Activate the plugin. WooCommerce must be active.
  3. Go to WooCommerce > Settings > Zaptilo, paste your API token and press “Test connection and list approved templates”.
  4. Under “Order messages” and “Abandoned carts”, enable each message and type the exact name of an approved template.

FAQ

Do I need to create templates first?

Yes. Templates must be created and approved in Zaptilo (by WhatsApp) before this plugin can use them. Type the exact template name and language code in the settings. The “Test connection” button lists your approved templates so you can copy the name.

Why only templates? What is the 24-hour rule?

WhatsApp lets a business send free-form text only within 24 hours after the customer last wrote to you. Order updates and cart reminders are almost always outside that window, so they must be approved template messages. This plugin never sends free-form text, so messages do not fail because of the 24-hour window.

Why do customers need to opt in?

WhatsApp requires that you have the customer’s permission before messaging them, and many countries have rules about it. The checkout checkbox “Send me order updates on WhatsApp” records that permission. By default no message is sent to a customer who did not tick it. Abandoned-cart reminders always require it. Orders created manually in the admin have no opt-in, so they are skipped unless you turn off “Require opt-in”.

Which variables can I use in a template?

{first_name}, {last_name}, {order_number}, {order_total}, {order_date}, {payment_method}, {items}, {shop_name}, {order_url}, {tracking_number}. Abandoned carts also support {cart_total}. Enter them as a comma-separated list in the order of {{1}}, {{2}} in your template.

How do I use a dynamic URL button?

Create the template with a URL button such as https://yourshop.com/?zaptilo_cart={{1}}. In the settings, put {cart_token} (abandoned cart) or {order_key} / {order_number} in “URL button suffix”.

Does it work with the block checkout?

Order messages and the opt-in checkbox do. Abandoned-cart tracking currently works on the classic (shortcode) checkout only.

Does the plugin send data to a third party?

Yes, only to Zaptilo, and only to send the WhatsApp messages you configure. See “External services” for exactly what is sent and when.

Where is my API token stored?

In your WordPress options table. It is never shown again after saving.

Screenshots

Changelog

0.1.0

  • First release.