Compare products
compare_productsCompare 2 to 4 products side by side - price, stock, specs, who each one suits - together with the stored spec-based comparisons between them, or pass ONE product_id with with_alternatives=true to put it next to the in-stock alternatives its buying guide compares it with. Good for "X or Y?", "what is the difference between..." and "is there something similar but..." questions. Records carry specs and short_description (get_product has the full description and the accessories). comparisons[] is written from the point of view of product_id against the alternative; two products with no stored comparison between them have none - compare their specs directly. Buying-guide text is Romanian for language=ro and English otherwise.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Locale for text + pricing (ro=RON, hu=HUF, de/en=EUR). Default ro. | |
| product_ids | Yes | Catalog product ids: 2 to 4, or exactly 1 together with with_alternatives=true. | |
| with_alternatives | No | With exactly one product id: add the in-stock alternatives its buying guide compares it with (up to 3). Default false. |