Skip to content

feat(integrations): WooCommerce connector: products, variations, categories and orders #1275

Closed

Description

@gkhngyk

Summary

Connect a WooCommerce store to a brand, on the framework from #1263. WooCommerce runs on the merchant's own WordPress site, so a contributor can build and test it entirely on a local WooCommerce install.

Scope

  • Connect:
    • The store URL plus a read-only REST API consumer key and secret, which the merchant creates in WooCommerce › Settings › Advanced › REST API.
    • HTTPS only.
    • Credentials go to the framework's credential store.
    • Entry point: the "Stores and marketplaces" group in Settings › Integrations (integrations-section.tsx).
  • syncCatalog(since):
    • Through the WooCommerce REST API (v3): products, variations, categories, images, SKU, GTIN where the store has one, price, stock status and permalink.
    • Variations map to variants, and categories to catalog categories.
  • syncOrders(since):
    • Order id, date, line items (product and variation id, quantity, revenue), currency, status and refunds.
    • Drop the billing, shipping and customer fields.
  • handleWebhook(event):
    • Optional: product and order webhooks, verified with WooCommerce's HMAC-SHA256 signature header.
    • The daily sync stays the backstop.

Acceptance criteria

  • npm test runs the connector against the harness's fake API with fixtures for:
    • paginated products with variations;
    • categories;
    • orders with a refund;
    • a webhook with a bad signature, which is rejected.
  • The stored order rows have no billing, shipping or customer fields (asserted in the tests).
  • The PR shows a sync against a local WooCommerce install (for example with wp-env): product and order counts.
  • The PR passes the contributor guide's security checklist.

Activity

  1. added
    enhancement
    help wanted
    integrations
    e-commerce
    agent-ready
    on Oct 20, 2026
  2. knockknock10 commented on Oct 29, 2026

    @knockknock10
    Contributor

    Thanks for the pointer — I’d like to take #1275 and work through the existing connector framework rather than introduce a parallel integration path. I’m starting with the store connection, paginated products/variations/categories, and harness tests. I also noticed the issue’s orders/webhooks scope is ahead of the current CONNECTORS.md contract, so I’m checking the existing order-data plumbing before deciding whether that can be safely included in this PR. I’ll call out any scope gap clearly rather than claim unsupported order persistence.

  3. gkhngyk commented on Oct 29, 2026

    @gkhngyk
    ContributorAuthor

    @knockknock10 assigned to you. Building on the connector framework is the right call. Products, variations and categories first is fine; if orders don't fit the current CONNECTORS.md contract, leave them for a follow-up PR and say so in the description.

  4. knockknock10 commented on Oct 29, 2026

    @knockknock10
    Contributor

    Implementation update: draft PR #1789 is open, the feature branch now includes current upstream main, and GitHub reports it mergeable. I reran the real local WordPress/WooCommerce acceptance test against the merged tree: 6 catalog items mapped into 4 products / 6 variants, USD currency and multi-category links persisted; 2 orders including a refund were normalized and persisted with no buyer/billing/shipping data stored. On the merged tree, server lint/format and schema generation pass, and all 320 server test files pass (4,359 passed, 3 skipped). The migration guard and server CI jobs are green; web CI is still running. The PR includes the connector security checklist and documents the optional webhook receiver limitation.

  5. knockknock10 commented on Oct 29, 2026

    @knockknock10
    Contributor

    Update: PR #1789 is now green on its latest head aa536fa. GitHub Actions passed server lint/format/tests, web format/lint/typecheck/Vitest/production build, schema consistency, and migration guard. The branch is mergeable and marked ready for review; GitHub notes that one approving maintainer review is still required. The PR description includes the local WooCommerce REST v3 acceptance results and security checklist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readye-commerceenhancementhelp wantedintegrations

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions