Skip to content

Configuration

Overview · Installation · Usage · Developer notes · Troubleshooting · FAQ

Settings: Add-ons > Manage add-ons > In-Chat Ordering for WhatsApp. The number and the Flow are on Orders > WhatsApp orders > Connection.

Setting What it does
Take orders in WhatsApp Off: incoming messages are stored and shown in Conversations, the bot does not answer.
Show products as Lists: categories and products as WhatsApp list messages, no Meta catalog needed. Meta catalog: product cards and multi-product messages from the catalog linked to your number; customers can add to the WhatsApp cart and send it.
Catalog item ID is How the content ID of a catalog item maps to a product: product ID, or product code (SKU) with the product ID as fallback. Must match the feed that fills your Meta catalog.
Catalog item ID prefix The same prefix as in your feed, if any.
Greeting Text above the main menu. Keep it about your shop.
Use the WhatsApp Flow for checkout When a Flow exists on the Connection page. Off: the bot asks step by step in the chat.
Mark customer messages as read Sends a read receipt for each customer message.
Vendors may connect their own number Multi-Vendor only. See Multi-Vendor.
Graph API version Pinned version of Meta’s API (default v25.0). Change it only when Meta announces the end of the selected version.
Setting What it does
Pay on delivery / pickup method Payment method of orders paid on delivery. “Not offered” hides the choice.
Online methods on the payment link page The customer gets a signed link to a page on your store and pays with one of these methods. Methods with a surcharge are not offered for Multi-Vendor orders with several vendors.
Payment link valid for (hours) Default 72.
Delivery countries Two-letter codes, comma separated, the first is the default. Empty = your default country.
Delivery time choices One per line, up to 10 (for example Today 18:00-21:00). The choice is added to the order notes.
Maximum WhatsApp order total 0 = no limit. Larger orders are refused with a message to order on the website or talk to a person.
Maximum items in a WhatsApp order Default 50 pieces.
Categories not sold in WhatsApp Category IDs, subcategories included. Use it for goods that Meta’s Commerce Policy does not allow in WhatsApp (for example alcohol, tobacco, medicines, weapons).
Setting What it does
Send a WhatsApp update when the order status becomes Default: Processed, Complete, Canceled. Inside the 24-hour window the update is a text message. If Order Notifications for Telegram & WhatsApp has an active customer WhatsApp rule for the same status on the same number, this add-on skips its update (no duplicates).
Template for updates outside the 24-hour window Name of a utility template approved in WhatsApp Manager with two body parameters: {{1}} order number, {{2}} status. Empty = updates are sent only inside the window.
Template language code For example en or en_US, as in WhatsApp Manager.
Keep conversations and log for (days) Default 90. Older conversations and messages are deleted by the daily clean-up.
Log API requests (debug) Stores request and answer bodies (tokens masked) in the log. Use only while you look for a problem.

Settings of the group “Click to WhatsApp ads” (Order updates and data tab). All are store-wide.

Setting What it does
Record ad referrals (Click to WhatsApp) Off by default. On: when a conversation starts from a Click to WhatsApp ad, the ad id, its headline and the click id (ctwa_clid) that Meta sends are stored, and the order the same customer places in that conversation is linked to the ad. Nothing is stored while it is off.
Keep click ids for (days) 1 to 90, default 7. After this time the click id and the hashed phone number of the row are cleared. It is also the time within which an order is linked to a click. A linked order keeps its click id until the purchase was reported to Meta (or the same number of days after the order).
Keep ad report rows for (days) 30 to 3650, default 180. The ad id, headline and order link stay for the report, then the row is deleted.

How an order is linked: the referral belongs to the conversation (one WhatsApp user on one number). When that user places an order in the chat, the newest referral of the conversation that has no order yet, and whose click is not older than the window, is linked to the order. One referral belongs to one order; a second order without a new ad click is not linked. There is no matching by guess. A click from a Status ad has no click id: it is counted in the report and linked, but it cannot be reported to Meta.

Rows of an order that is deleted, or anonymized by Data Retention & Guest Anonymizer (data types guest orders and customer orders), are deleted with it.

Privacy. The click id identifies a person’s ad click, so it is personal data. You are the controller, Kavio Labs never receives it. Add a sentence like this to your privacy policy and check it with your adviser: “If you contact us through a Click to WhatsApp ad, Meta tells us which ad you clicked and an identifier of that click. We keep it for up to [7] days to match your order to the ad and, if you agreed, report the purchase to Meta (Meta Platforms Ireland Ltd.) so it can measure the ad. Legal basis: [consent / legitimate interest].” Report to Meta only when your legal basis allows it.

Conversation steps run right after Meta’s webhook is answered. Status updates and the daily clean-up run from the job queue. Add one of these to your server’s cron (every 5 minutes is enough); both are shown in the settings:

php /path/to/store/admin.php --dispatch=kv_whatsapp_ordering.cron

or the secret address https://your-store/index.php?dispatch=kv_whatsapp_ordering.cron&key=....

Customers can type MENU, CART, STATUS, AGENT, STOP, START and CANCEL (and greetings such as “hi”). The lists are language variables (kv_whatsapp_ordering.kw_menu, kw_cart, kw_status, kw_human, kw_stop, kw_start, kw_cancel): edit them in Administration > Languages to add words of your customers’ language. Every bot text is a language variable too (kv_whatsapp_ordering.bot_*).

  • One marketplace number (default): the marketplace number sells the whole catalog. A cart with products of several vendors becomes a parent order with one order per vendor, exactly like the website checkout, and every vendor sees their order in the vendor panel. Payment links pay the parent order.
  • Vendor numbers (setting on): a vendor can connect their own WhatsApp number on Orders > WhatsApp orders > Connection in the vendor panel (their own Meta app and token). Their bot sells only their products, and they see only their own conversations. Queue, log and settings stay admin only.

Each storefront can have its own number: select the storefront in the admin panel, then open the Connection page. The callback URL contains the number, so one store can serve several numbers. A storefront number sells the catalog of its storefront. The shared number (“All storefronts” selected, account 0) serves the storefront whose address is in its callback URL: use one number per storefront when the storefronts have different catalogs.