Skip to main content

recommendations

Product recommendations for a specific product based on sales data, product descriptions, and collection relationships.

Product recommendations become more accurate over time as new orders and product data become available. To learn more about how product recommendations are generated, refer to Product recommendations.


Note

The recommendations object returns products only when rendered in a section using the Product Recommendations API and the Section Rendering API. To learn about how to include product recommendations in your theme, refer to Show product recommendations.


Properties

The recommendation intent.

If performed? is false, then nil is returned.

Returns true when being referenced inside a section that's been rendered using the Product Recommendations API and the Section Rendering API. Returns false if not.

Anchor to
products
array of product

The recommended products.

If performed? is false, then an EmptyDrop is returned.

Anchor to
products_count

The number of recommended products.

If performed? is false, then 0 is returned.

{
"products": [],
"products_count": 4,
"performed?": true
}
Was this section helpful?