WooCommerce plugin docs / Product Comparison

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 → RecommendationsEnable 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

SituationWhat happens
2–4 valid IDsComparison table
Fewer than 2Tool/API error or no table
More than 4Rejected / truncated per comparer rules
Unpublished IDDropped

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.