42 "summary": "Per-order applied-discount records ride inside wc/v3/orders order-item meta_data under _wdr_discounts — real historical transactional data with a CONFIRMED Wix target: Order.appliedDiscounts[] (merchantDiscount variant + lineItemDiscounts[]) via Import Order — mapping confirmed 2026-08-16, see ecom/order-applied-discount. Rule *definitions* (the discount configuration itself, not applied history) are a SEPARATE entity on this profile (discount-rule-definition, below) with its own candidate target (ecom/discount-rule) — CORRECTED 2026-08-28: this used to read \"no candidate target at all, reconfigure-in-wix\" back when the wp-admin rule-config page looked unreachable; the underlying wdr_rules table turned out to be readable through wix-wp-plugin-v2’s structure-bridge regardless of the page."
43 },
44 {
45 "code": "partial-channel-db-only-remainder",
46 "severity": "warning",
47 "summary": "A fuller per-item discount ledger also lives in a custom table (wdr_order_item_discounts per vendor-side research, 2026-08-11) with no REST surface — unreachable by this profile's channel. The order-meta summary this entity reads is real but may be a subset of the full applied-discount history."
62 "summary": "DOWNGRADED from blocker 2026-08-28 -- a working read path now exists (see this entity's blocked[].fulfillment below), so this note is background, not a dead end. The rule configuration itself (triggers, effects, scope — 'buy X get Y', 'N% off orders over $Y', tiered pricing) renders only at wp-admin/admin.php?page=woo_discount_rules, a settings page with no REST route. VERIFIED against a live WordPress installation: a Basic-Auth GET against that URL with a valid Application Password 302-redirects to wp-login.php?reauth=1 — identical to an anonymous request. WordPress core does not extend Application Password auth to wp-admin page rendering. See plugins/README.md's admin-page-only channel note for why the admin PAGE specifically stays unreachable even though the underlying table is not."
63 }
64 ],
65 "blocked": [
66 {
67 "kind": "structure-bridge-plugin",
68 "resolution": "wix-wp-plugin-v2's discover-structure/query-structure routes read the wdr_rules table directly -- no dependency on the unreachable wp-admin settings page. VERIFIED LIVE 2026-08-28 against a real WordPress/WooCommerce test site: discover-structure returned wdr_rules's real 30-column schema, and query-structure returned real sample rows (id/title/enabled/discount_type/priority) with correct pagingMetadata. Site owner must install wix-wp-plugin-v2; it is read with the same Application Password (manage_woocommerce or manage_options) this profile's other entities already need.",
69 "declined": false,
70 "fulfillment": {
71 "kind": "structure-bridge-plugin",
72 "handlerId": "wix-wp-plugin-v2",
73 "table": "wdr_rules"
74 }
75 }
76 ]
77 }
78 ],
79 "quirks": [
80 "Rule definitions (percentage/BOGO/tiered logic) are plugin configuration reproducible by reconfiguring in Wix, not durable customer data — only the applied-discount record per order is a migration candidate.",
81 "_wdr_discounts VERIFIED 2026-08-11 against the plugin's own source (ManageDiscount.php, github.com/WordpressPluginDirectory/woo-discount-rules): it is written via setOrderMeta($order, '_wdr_discounts', ...) at the ORDER level AND via setOrderItemMeta($order_item, '_wdr_discounts', ...) at the per-LINE-ITEM level — the same key appears in both wc/v3/orders meta_data and in each entry of orders[].line_items[].meta_data. An older version used the key _advanced_woo_discount_item_total_discount as a read fallback; a source site running a pre-rename version could still carry data under that key.",
82 "Discount Rules PRO (woo-discount-rules-pro) is an add-on: it adds the rule types wdr_buy_x_get_y_discount, wdr_buy_x_get_x_discount, wdr_set_discount and more conditions, all stored in this plugin's own wdr_rules table, so this profile's discount-rule-definition entity already reads them. Each rule type maps to Wix Automatic Discounts per ecom/discount-rule (buy-X-get-Y included). VERIFIED on a real store (2026-10-28, PRO 2.6.9): 6 wdr_rules rows, 3 of them buy-X-get-Y."