WooCommerce

Estimated reading: 2 minutes

Overview

AFI creates customer records and (manual) orders in WooCommerce from external sources. Useful for migrating customers from other platforms, importing offline orders, or pre-creating customer accounts so the next purchase is one-click.

Supported actions

  • Create / Update Customer — upsert a WooCommerce customer by email.
  • Create Order — manual order with line items, totals, billing/shipping addresses.
  • Add Note to Order

Authentication

  1. No API key needed when running on the same WordPress site.
  2. For remote sites, generate WooCommerce REST API keys under WooCommerce > Settings > Advanced > REST API.
  3. In AFI go to Settings > WooCommerce and (for remote sites) paste the Consumer Key and Consumer Secret.

How to create the integration

  1. In WordPress admin, go to AFI > New Integration.
  2. Pick your Sender (Contact Form 7, WPForms, WooCommerce, etc.) and the form / event to listen on.
  3. Pick WooCommerce as the Receiver, then pick the Task you want to run.
  4. Map sender fields onto WooCommerce’s fields. Email for customers; product IDs + quantities + billing fields for manual orders.
  5. Optional: add Conditional Logic so the action only fires on matching submissions.
  6. Save and run a test submission. Check AFI > Log if anything looks off.

Notes & caveats

  • Manual order gateway: AFI-created orders default to none as the payment gateway. Adjust per your accounting flow.
  • Stock changes: manual orders decrement stock by default; turn off if you’re importing historical orders that shouldn’t affect inventory.
  • Customer emails: WooCommerce sends new-account / new-order emails on creation — suppress them per the WooCommerce admin if needed.

Related