Skip to content
E-Commerce

When a new order received in WooCommerce, get array count of the line items using PHP Array module, and send WhatsApp template message to user using WA.Team

When a WooCommerce order comes in, FlowMattic counts the line items with PHP Array and sends the buyer a WhatsApp template message via WA.Team, confirming exactly what they purchased.

WooCommerceWooCommerce PHP Array by FlowMatticPHP Array by FlowMattic WhatsApp by WA.TeamWhatsApp by WA.Team
~5 min setup used by 954 sites

Free · import into FlowMattic in one click

How it works

Every step, explained

Import the template and this whole chain runs on autopilot — here's exactly what happens on each run.

WooCommerce → PHP Array by FlowMattic → WhatsApp by WA.Team
3 steps
WooCommerce
TRIGGER
WooCommerce · New Order Created
The workflow starts automatically when a new order is created in WooCommerce. FlowMattic captures that data for the steps below.
PHP Array by FlowMattic
ACTION
PHP Array by FlowMattic · Get Array Count
PHP Array by FlowMattic — get count of total number of items in array. Data is mapped from earlier steps; connect your PHP Array by FlowMattic account on import.
WhatsApp by WA.Team
ACTION
WhatsApp by WA.Team · Send Template Message
WhatsApp by WA.Team runs its "Send Template Message" action using data mapped from earlier steps. Connect your WhatsApp by WA.Team account on import and it's live.
Why this workflow

Built to own, not to rent

No-code setup

Import the JSON, connect your accounts, and go live in minutes. Every step is pre-mapped — you only add your own credentials.

Runs on your server

Self-hosted on your WordPress install. No per-task fees, no data leaving your infrastructure, no monthly SaaS bill.

Fully customizable

Open it in the visual builder and reshape it — add branches, swap apps, insert filters. A starting point, not a cage.

Ready to automate your WordPress site?

Download this workflow free, or grab FlowMattic and own every automation on your site — no per-task fees, ever.