AFI AFI

WooCommerce (receiver)

Estimated reading: 2 minutes Updated August 1, 2026

WooCommerce is the most popular WordPress ecommerce plugin. As a receiver, AFI creates new WooCommerce customers, products, or orders from your form submissions, useful for “Apply for a wholesale account” forms, custom-quote intake, or pre-order capture.

(For the sender version, capturing WooCommerce order events and routing them to other platforms, see the WooCommerce sender doc.)

What you’ll need

  • WooCommerce installed and active on the same WordPress site.
  • The Advanced Form Integration plugin installed and activated.

Create the integration

  1. Go to AFI → Add New.
  2. Configure the trigger.
  3. In Action → Platform, select WooCommerce.
  4. In Task, choose Create Customer (or Create Order, Create Product if your use case calls for those).
  5. Map the form fields:
  • For customer: Email (required), Username, Password (leave unmapped to auto-generate), First Name, Last Name, Phone.
  • Billing Address (Address 1/2, City, State, Country, Postcode).
  • Shipping Address (same fields).
  • Customer Note.
  • Role (customer, wholesale_customer, etc.) for routing to a specific WooCommerce role.
  1. Optional: configure Conditional Logic.
  2. Click Save Integration.

Screenshot: AFI field-mapping screen with WooCommerce customer fields visible

Conditional logic example

Create a WooCommerce customer with role wholesale_customer only when the form’s account_type field equals “wholesale”. Standard signups create regular customers via a separate integration.

Troubleshooting

“Email already exists”

WooCommerce treats customer email as unique. If the email is already a customer, AFI logs the attempt and stops. No duplicate is created.

Welcome email not sent

WooCommerce’s “New account” email is controlled in WooCommerce → Settings → Emails. If that email is disabled, customers won’t receive a welcome notification regardless of how the account was created.

Related docs