WooCommerce
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
- No API key needed when running on the same WordPress site.
- For remote sites, generate WooCommerce REST API keys under WooCommerce > Settings > Advanced > REST API.
- In AFI go to Settings > WooCommerce and (for remote sites) paste the Consumer Key and Consumer Secret.
How to create the integration
- In WordPress admin, go to AFI > New Integration.
- Pick your Sender (Contact Form 7, WPForms, WooCommerce, etc.) and the form / event to listen on.
- Pick WooCommerce as the Receiver, then pick the Task you want to run.
- Map sender fields onto WooCommerce’s fields. Email for customers; product IDs + quantities + billing fields for manual orders.
- Optional: add Conditional Logic so the action only fires on matching submissions.
- 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.