Product comparison
Overview
Shoppers compare two to four live catalog products in a table (price, attributes, stock). Data is loaded from WooCommerce (Product_Comparer), not from the model’s memory.
How It Works
The model or widget requests comparison for IDs from the current conversation. REST GET /aiwsa/v1/products/compare. Invalid/stale IDs are dropped.
How to Enable It
WooCommerce → AI Assistant → Recommendations → Enable product comparison.
Configuration
Tool compare_products default On. Accent color highlights differences (Appearance).
Frontend Usage
Ask “compare the first two” after a search, or use a Quick Action Compare Products.
Example
Search returns three blenders; shopper compares two; table shows wattage attributes and prices from the catalog.
Behavior
| Situation | What happens |
|---|---|
| 2–4 valid IDs | Comparison table |
| Fewer than 2 | Tool/API error or no table |
| More than 4 | Rejected / truncated per comparer rules |
| Unpublished ID | Dropped |
Limitations
- Not a full spec-sheet importer. Attributes must exist on products.
Troubleshooting
Empty table: products lack attributes, or IDs were not from this chat’s search results.