When a new order received in WooCommerce, Check if Meta Value exists using filters, and set meta value using Metabox
When a WooCommerce order is created, a Filter checks for a meta value you choose and, if the check passes, Metabox’s Set Meta Value writes a value to a post, term or user on your site.
WooCommerce
Metabox3 steps Setup ~5 min Used on 1.6k sites Free to import

What this workflow does
Stores that use Metabox often keep extra data on orders, products or customers: a source code, a fulfilment flag, a loyalty marker. Setting those values by hand after each order is slow and easy to forget. This workflow sets a meta value for you when an order comes in, but only after a check you define.
The WooCommerce trigger fires when a new order is created, passing the order data on. A Filter step, Continue If Condition Meet, then decides whether the run goes on. If its conditions are met, Metabox Set Meta Value writes a value to the object you point it at, which can be a post, a term or a user.
The Filter ships with no conditions. Before you turn the workflow on, set the condition the title describes, for example that the meta field you care about exists or is not empty. Until you set one, the empty Filter stops every run and no meta value is written. Once it is set, test it with one order that has the value and one that doesn't.
Flag orders that came from a campaign
When an order carries a campaign code in its meta, the workflow sets a Metabox field you use to report on campaign sales.
Mark customers after a qualifying order
Orders with a particular value in a meta field set a user meta flag on the customer's account, which other parts of your site can read.
Prepare orders for a fulfilment process
Orders that already have a delivery note in their meta get a Metabox field set that your packing team's view filters on.
How this workflow runs
What happens at each step once the workflow is on, and what you need before you import it.
WooCommerce New Order CreatedFires when a new WooCommerce order is created on your store. The order data is passed to the Filter and the Metabox step for checking and mapping.
Filter Continue If Condition MeetContinues only when the conditions you set are met. It ships empty, so add the meta value check the title describes before you switch the workflow on. When the check fails, the run stops here.
Metabox Set Meta ValueSets a meta value on a post, term or user through Metabox. Map the object ID from the order data and the value you want to store, then test on one order and confirm the value appears where you expect.
What you need
- FlowMatticCore
- WooCommerce PluginPlugin
- Metabox PluginPlugin
After importing, map your own data. To keep the template universal, not every step is pre-filled. Open each step in the builder and connect your accounts and fields (channels, lists, sheets, recipients) before you switch the workflow on.
Make it yours
Changes worth making after you import it.
- If a test order doesn't show the meta field you want to check, add Metabox Get Meta Value before the Filter so the value is in the run's data.
- Use Add Meta Value instead of Set Meta Value when the field should keep earlier values and gain a new one rather than replacing them.
- To set the meta on the customer rather than the order, point Set Meta Value at the user and map the customer's user ID from the order data.
Questions about this workflow
What does the Filter check in this WooCommerce workflow as imported?
Nothing yet. The template ships without conditions, so you add the meta value check yourself and test it before relying on the workflow.
Can it set meta on the WooCommerce order itself?
Set Meta Value works on posts, terms and users. Point it at the order using the order ID from the trigger, then check a test order to confirm the value is saved on it.
What happens to WooCommerce orders that fail the Filter?
The run stops at the Filter for that order, so no meta value is set. The order itself is not changed by the workflow.
Does the Metabox field need to exist before the workflow runs?
Registering the field in Metabox first means it appears in your admin screens. A test order then shows whether the value was saved under that field.
More E-Commerce workflows
Other ready-to-import templates from the same category.







Import this workflow into your WordPress site
Download the JSON, import it from the Workflows screen and connect your accounts. Every run stays on your server, with no per-task fees.
30-day money-back guarantee Unlimited workflows and runs Self-hosted