Optimal WooCommerce Schema
What it is
Optimal WooCommerce Schema completes the Product structured data WooCommerce already outputs, instead of emitting a second Product node. AISA hooks the core woocommerce_structured_data_product filter and fills in the fields that core (and often Yoast/Rank Math) leave empty: guaranteed availability, itemCondition, priceValidUntil, brand, and GTIN/MPN. One node, complete — no duplication.
Where to find it
Settings → WooCommerce tab, toggle Enable optimal WooCommerce schema (option aisa_wc_schema_enabled, on by default). When off, the module early-returns with zero runtime work.
Requirements & tier
Requires WooCommerce active. It enhances the existing core JSON-LD, so it needs core schema to be present (the usual case). No AI cost — it is a structured-data completion, not a generation.
How to use
- Open Settings → WooCommerce.
- Keep Enable optimal WooCommerce schema turned on.
- AISA runs at filter priority 20, after core builds the Product node.
- It adds availability, itemCondition, priceValidUntil, brand and GTIN/MPN where missing.
- Validate a product URL in a rich-results tester to confirm a single, complete Product node.
Questions people ask
- Does it create a second Product node? No — it enhances the existing core node in place.
- Does it conflict with Yoast/Rank Math? No — it only fills empty fields and does not duplicate output.
- Why does availability matter? A missing availability is the number-one cause of disappearing product rich results.
- What if another plugin suppresses the core schema? The filter does not fire, so AISA does not duplicate; a standalone fallback is a later phase.
- Is there a runtime cost when off? No — the module early-returns when disabled.
Troubleshooting
If fields are still empty, confirm WooCommerce core schema is being output (some themes/plugins disable it). If you run Yoast WooCommerce SEO and it pipes schema into its own @graph, the core filter may not fire — that is the supported "no duplication" behavior.
Related
Brand, GTIN and MPN completion · Variant product schema · WooCommerce value pills.
