tr Skip to content
E-Commerce

When a new order is created in WooCommerce, loop through the line items using Iterator, call WooCommerce PHP function wc_get_product to get the product data for the product ID, and add details to Google Spreadsheet

Each WooCommerce order is unpacked line by line with Iterator, enriched with full product data via PHP Functions, and logged to Google Sheets, giving you an itemized sales record with zero manual entry.

WooCommerceWooCommerce IteratorIterator PHP Functions by FlowMatticPHP Functions by FlowMattic Google SheetsGoogle Sheets
~8 min setup used by 3.1k 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 → Iterator → PHP Functions by FlowMattic
4 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.
Iterator
LOGIC
Iterator · Loop Through Array
The Iterator loops over a list and runs the next actions once per item.
PHP Functions by FlowMattic
ACTION
PHP Functions by FlowMattic · Call PHP Function
PHP Functions by FlowMattic — call any PHP function and pass data from your workflow. Data is mapped from earlier steps; connect your PHP Functions by FlowMattic account on import.
Google Sheets
ACTION
Google Sheets · New Spreadsheet Row
Google Sheets — trigger when a new row is added to the spreadsheet. Data is mapped from earlier steps; connect your Google Sheets account on import.
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.