OrderChat for WooCommerce

Description

Many shoppers would rather order through WhatsApp than fill in a checkout. Most WhatsApp buttons just open a chat, so the order never reaches your store, stock is never tracked and nothing shows up in your reports.

OrderChat fixes that. When a customer taps “Order on WhatsApp”:

  1. They enter their name, phone and delivery address in a short pop-up.
  2. A real WooCommerce order is created with the status Pending WhatsApp.
  3. WhatsApp opens with the order number, items, total and their details already written, ready to send to you.

You confirm the order in the chat. When payment is received, change the status to Processing as usual. Stock, emails and reports then work as normal.

Features

  • “Order on WhatsApp” button on single product pages (simple and variable products)
  • “Order cart on WhatsApp” button on the cart page, including applied coupons
  • Real WooCommerce orders with a custom “Pending WhatsApp” status
  • Editable message template with placeholders, and lines whose value is empty are removed automatically
  • Optional “Pay online” link in the message, using your existing payment gateways
  • Choose your button text and colour
  • Remembers the customer’s details on their device for next time
  • Built-in spam protection: security tokens, hidden honeypot field and a per-visitor rate limit that sees real visitor IPs behind Cloudflare
  • Respects “sold individually”, minimum/maximum quantities and other plugins’ add-to-cart rules
  • “Chat with customer” button on every order screen, with a ready-made opening message
  • Several WhatsApp numbers: always use the main one, take turns, or pick at random
  • Default country code, so local customer numbers (e.g. 0813…) open correctly
  • Business hours: show a “we’re closed, we’ll reply tomorrow at 9:00” note, or hide the buttons
  • Auto-cancel “Pending WhatsApp” orders nobody confirmed after a set number of hours
  • Compatible with WooCommerce High-Performance Order Storage (HPOS)
  • Translation-ready, no external services, no tracking

Developer hooks

  • orderchat_message_parts adds or changes message placeholders
  • orderchat_message filters the final message text
  • orderchat_whatsapp_number changes the receiving number per order
  • orderchat_order_created runs after an order is created
  • orderchat_product_supported controls which products show the button
  • orderchat_pick_number overrides which store number receives an order
  • orderchat_admin_message changes the admin’s opening message to the customer
  • orderchat_is_open overrides business-hours logic
  • orderchat_trusted_proxies lists your own proxy/load-balancer IPs so X-Forwarded-For is trusted
  • orderchat_client_ip overrides the detected visitor IP
  • orderchat_rate_limit and orderchat_rate_window adjust spam protection

External services

This plugin links to WhatsApp, a service provided by Meta Platforms, Inc. (WhatsApp LLC), so customers can send their order to the store and store staff can message customers.

  • When: only when a customer taps an OrderChat button and submits the pop-up, or when a store manager clicks “Chat with customer” on an order.
  • What is sent: the customer’s browser opens a https://wa.me/ link. The link contains the store’s or customer’s WhatsApp number and the order message: order number, items, total, and the name, phone, delivery address and note the customer entered. When the browser opens that link, WhatsApp receives this information.
  • Nothing is sent in the background. The plugin makes no server-side requests to WhatsApp or any other service, and has no tracking or analytics.

WhatsApp Terms of Service: https://www.whatsapp.com/legal/terms-of-service
WhatsApp Privacy Policy: https://www.whatsapp.com/legal/privacy-policy

Screenshots

Installation

  1. In your dashboard go to Plugins Add New, search for “OrderChat”, then install and activate. WooCommerce must be active.
  2. Go to WooCommerce Settings OrderChat.
  3. Enter your WhatsApp number in international format, digits only, with no + or leading 0 (for example 2348012345678 or 19365102670).
  4. Choose where the buttons appear (product pages, cart or both) and set the button text and colour.
  5. Optional: edit the message template. A line whose placeholder is empty is left out automatically.
  6. Set Default country code (e.g. 234 for Nigeria, 1 for the USA, 44 for the UK) so “Chat with customer” works for numbers typed without one.
  7. Optional: add extra numbers and choose how orders are shared between them.
  8. Optional: turn on Business hours, then choose whether customers see a “we’re closed” note or no button at all.
  9. Optional: set Auto-cancel after (hours) to clean up orders nobody confirmed.
  10. Save, then place a test order from a product page to see the full flow.

Daily use

  1. A new WhatsApp order appears in WooCommerce Orders as Pending WhatsApp, and the customer’s message arrives in your WhatsApp.
  2. Open the order and use Chat with customer in the WhatsApp box to reply.
  3. Confirm the order and take payment, either through the “Pay online” link or by your usual method.
  4. Change the status to Processing or Completed. Stock is reduced and WooCommerce emails are sent as normal.

FAQ

Do customers need to create an account?

No. Guests can order. Logged-in customers have the order linked to their account.

Why does “Chat with customer” say the number looks local?

The customer typed their number without a country code (for example 0813…). Set Default country code in the settings and the button will work.

Can I hide the button outside opening hours?

Yes. Turn on Business hours and set “When closed” to “Hide the WhatsApp buttons”.

Does stock reduce when the WhatsApp order is created?

No. Stock reduces when you move the order to Processing, Completed or On hold, just like a normal WooCommerce order. This stops abandoned chats from locking up stock.

What happens to orders that are never sent?

They stay as “Pending WhatsApp” so you can follow up or cancel them. You can filter them from the Orders screen.

I use page caching and the button says my session expired.

Exclude product and cart pages from full-page caching, or set your cache to expire within 12 hours. The button uses a security token that expires.

Does it work with the WhatsApp Business app?

Yes. Orders arrive as normal messages in WhatsApp or WhatsApp Business.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“OrderChat for WooCommerce” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

0.2.5

  • Admin styles moved to an enqueued stylesheet, loaded only on order screens.
  • Admin notices limited to the Plugins and WooCommerce settings screens.

0.2.4

  • Fix: an order paid through the “Pay online” link now moves from Pending WhatsApp to Processing, the same as a normal checkout.

0.2.3

  • Readme: full setup and daily-use instructions, screenshots list, and External services disclosure for WhatsApp.

0.2.2

  • Plugin Check: all posted input is sanitized at the point it is read.
  • Plugin Check: documented the intentional use of WooCommerce core filters.
  • Tested with WordPress 7.1.

0.2.1

  • Security: variation options are checked against the product’s real options. Fixed options always come from the variation.
  • Security: the rate limit uses the real visitor IP behind Cloudflare, and spoofed forwarded headers are ignored. You can add trusted proxies with a filter.
  • Security: hidden honeypot field to stop form-filling bots.
  • Fix: respects “sold individually”, min/max purchase quantities and the woocommerce_add_to_cart_validation filter.
  • New: option to stop remembering customer details on the device.

0.2.0

  • New: “Chat with customer” box on the order screen (classic and HPOS).
  • New: extra WhatsApp numbers with main / round-robin / random sharing. The receiving number is saved on each order.
  • New: default country code for customer numbers.
  • New: business hours with overnight support, closed note or hidden buttons.
  • New: auto-cancel unconfirmed “Pending WhatsApp” orders (hourly check).
  • Tested with WooCommerce 11.3.

0.1.0

  • First release: product and cart buttons, customer details pop-up, Pending WhatsApp order status, message template, optional payment link.