- the commission upsert replaces subtotal, commission, vendor_payout and
commission_rate on conflict (it kept the first amounts, so a partial refund
before completion never reached the row)
- woocommerce_order_refunded recomputes a tracked or already recorded order;
a fully refunded order keeps its row at zero, untracked orders get none
- Verify: WCOrdersInterceptorTest (5 new), integration 27, unit 11, phpcs;
dev36 flow_wc partial refund -> completed
- PR: PR-092
- Stop registering WC product/order/subscription zone fields and the user hot group; WC reads its meta directly and writes stock by SQL, so a flat copy drifts
- Keep the custom tables registration, the HPOS notice and the commissions
- Verify: composer test / test:integration; dev36 customer save, order stock reduce/restore with no DB errors
- PR: PR-085
- 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