hardening 2.0: 2meet-data-optimizer-woocommerce-addon (staged rollout, dev22 first) #1

Merged
wpdev merged 1 commits from hardening/2.0 into main 2026-09-26 10:24:21 +08:00
Owner

Hardening 2.0 for 2meet-data-optimizer-woocommerce-addon — the backlog PRs committed on hardening/2.0 (see dev30/notes/pr-backlog.md, Completed Log).

Commits

  • fix(2meet-data-optimizer-woocommerce-addon): read real Marketplace commission keys

Rollout

  • Staged: dev22 first (symlink to this branch, HP AddOn active before the core), then merge and roll out to the other sites
  • Do not merge before the dev22 verification is done
Hardening 2.0 for `2meet-data-optimizer-woocommerce-addon` — the backlog PRs committed on `hardening/2.0` (see `dev30/notes/pr-backlog.md`, Completed Log). ## Commits - fix(2meet-data-optimizer-woocommerce-addon): read real Marketplace commission keys ## Rollout - Staged: dev22 first (symlink to this branch, HP AddOn active before the core), then merge and roll out to the other sites - Do not merge before the dev22 verification is done
wpdev added 1 commit 2026-09-26 07:27:45 +08:00
fix(2meet-data-optimizer-woocommerce-addon): read real Marketplace commission keys
Tests / PHP Lint (pull_request) Successful in 11s
Tests / Integration Tests (pull_request) Successful in 59s
Tests / Unit Tests (pull_request) Successful in 59s
094248b75d
- Marketplace writes hp_vendor / hp_commission_rate / hp_commission_fee (no
  underscore); the _hp_* keys never existed, so no commission was recorded
- Compute subtotal, vendor payout and commission the way
  Marketplace::get_order_profit() does, honouring hp_vendor_include_taxes
- Store the vendor's user ID, the product's parent listing, and the platform
  commission percentage (Marketplace stores the vendor share, e.g. 0.9)

Verify: phpunit-integration --filter WCOrdersInterceptorTest (4 tests);
  WC unit 10 OK, integration 22 OK
PR: PR-012
wpdev merged commit 78fbd4f3c3 into main 2026-09-26 10:24:21 +08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wpdev/2meet-data-optimizer-woocommerce-addon#1