WooCommerce variables and fields

jetFlow.io > Documentation  > Workflow Variables  > WooCommerce variables and fields

WooCommerce variables and fields

If a workflow starts with a WooCommerce trigger, the order and payment fields become available in the workflow with the following {TRIGGER} variable.

Variable Sample value
{TRIGGER.id} 123
{TRIGGER.parent_id} 0
{TRIGGER.status} completed
{TRIGGER.currency} USD
{TRIGGER.version} 4.7
{TRIGGER.prices_include_tax}
{TRIGGER.date_created.date} 2020-10-26 02:57:02.000000
{TRIGGER.date_created.timezone_type} 1
{TRIGGER.date_created.timezone} +00:00
{TRIGGER.date_modified.date} 2020-10-26 02:57:04.000000
{TRIGGER.date_modified.timezone_type} 1
{TRIGGER.date_modified.timezone} +00:00
{TRIGGER.discount_total} 0
{TRIGGER.discount_tax} 0
{TRIGGER.shipping_total} 0.00
{TRIGGER.shipping_tax} 0
{TRIGGER.cart_tax} 0
{TRIGGER.total} 29.00
{TRIGGER.total_tax} 0
{TRIGGER.customer_id} 123
{TRIGGER.order_key} wc_order_yTWxyuqnPrA23
{TRIGGER.billing.first_name} Arthur
{TRIGGER.billing.last_name} Clarke
{TRIGGER.billing.company} Cerber Tech Inc.
{TRIGGER.billing.address_1} 3500 Deer Creek Road
{TRIGGER.billing.address_2}
{TRIGGER.billing.city} Palo Alto
{TRIGGER.billing.state} CA
{TRIGGER.billing.postcode} 94304
{TRIGGER.billing.country} US
{TRIGGER.billing.email} arthur@wpcerber.com
{TRIGGER.billing.phone}
{TRIGGER.shipping.first_name}
{TRIGGER.shipping.last_name}
{TRIGGER.shipping.company}
{TRIGGER.shipping.address_1}
{TRIGGER.shipping.address_2}
{TRIGGER.shipping.city}
{TRIGGER.shipping.state}
{TRIGGER.shipping.postcode}
{TRIGGER.shipping.country}
{TRIGGER.payment_method} stripe
{TRIGGER.payment_method_title} Bank Card (Stripe)
{TRIGGER.customer_ip_address} 192.113.91.48
{TRIGGER.customer_user_agent} Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0
{TRIGGER.created_via} subscription
{TRIGGER.customer_note}
{TRIGGER.date_completed.date} 2020-10-26 02:57:04.000000
{TRIGGER.date_completed.timezone_type} 1
{TRIGGER.date_completed.timezone} +00:00
{TRIGGER.date_paid.date} 2020-10-26 02:57:04.000000
{TRIGGER.date_paid.timezone_type} 1
{TRIGGER.date_paid.timezone} +00:00
{TRIGGER.cart_hash}
{TRIGGER.number} RS359
{TRIGGER.items.0.name} WP Cerber Security
{TRIGGER.items.0.product_id} 632
{TRIGGER.items.0.variation_id} 0
{TRIGGER.items.0.quantity} 1
{TRIGGER.items.0.total} 29
{TRIGGER.total_items} 1
{TRIGGER.products.0} 632
{TRIGGER.variations.0} 0
{TRIGGER.coupon} 0
{TRIGGER.customer.ID} 123
{TRIGGER.customer.caps.0} read
{TRIGGER.customer.caps.1} level_0
{TRIGGER.customer.caps.2} subscriber
{TRIGGER.customer.roles.0} subscriber
{TRIGGER.customer.filter}
{TRIGGER.customer.nickname} Arthur
{TRIGGER.customer.first_name} Arthur
{TRIGGER.customer.last_name} Clarke
{TRIGGER.customer.description}
{TRIGGER.customer.user_login} clarke
{TRIGGER.customer.user_pass}
{TRIGGER.customer.user_nicename} clarke
{TRIGGER.customer.user_email} clarke@wpcerber.com
{TRIGGER.customer.user_url}
{TRIGGER.customer.user_registered} 2019-09-26 02:46:48
{TRIGGER.customer.user_activation_key}
{TRIGGER.customer.user_status} 0
{TRIGGER.customer.display_name} Arthur C. Clarke
{TRIGGER.view_link} https://example.com/account/view-order/123/
{TRIGGER.edit_link} https://example.com/wp-admin/post.php?post=123&action=edit
No Comments

Sorry, the comment form is closed at this time.