Overview
Blocks provide a flexible system for displaying product recommendations across your storefront. Unlike static product lists, blocks dynamically generate recommendations based on context, customer behavior, and configurable rules. Key capabilities:- Multiple anchor types - Display recommendations on product pages, collection pages, in the cart, or globally
- Flexible strategies - Choose from interaction-based, similarity-based, or manual curation
- Conditional rules - Modify block behavior based on customer context and product attributes
- Safeguards - Ensure blocks always display appropriately with minimum/maximum constraints and control personalization strength
- Fallback chains - Automatically use alternative blocks when primary blocks don’t return enough products
Anchor types
Anchor types determine where a block appears on your storefront and what context it uses to generate recommendations.Product anchor
Display recommendations on product pages. The block uses the current product as the anchor to find related products. Common use cases:- “Frequently Bought Together” on product pages
- “Customers Also Viewed” recommendations
- “Similar Products” suggestions
- “Complete the Look” cross-sells
Collection anchor
Display recommendations on collection pages. The collection is determined dynamically from theanchor_id parameter in the API request, which can be either a collection ID or handle.
How it works:
- The collection is resolved at request time using the
anchor_idparameter - No collection selection is required in the dashboard
- Supports both collection IDs (numeric) and handles (string)
- “Browsed Then Bought” — products purchased by shoppers who browsed the collection
- “Trending in Collection” — products trending within the collection
- Similar products based on the collection’s catalog
- Featured products within a collection
- “Editor’s Picks” for specific collections
- Collection-specific promotions
Cart anchor
Display recommendations in the cart. The block uses products currently in the cart to find complementary items. Common use cases:- “Complete the Look” in cart
- “Frequently Bought Together” based on cart contents
- Cross-sell recommendations before checkout
None anchor
Global blocks that can appear anywhere on your storefront. These blocks don’t require any anchor context. Common use cases:- “Best Sellers” on homepage
- “New Arrivals” on homepage
- “Featured Products” on static pages
- “Trending Now” global widget
See also
- Strategies - Strategy types and availability by anchor type
- Rules & Safeguards - Conditional rules, safeguards, and fallback chains
- Priority & Status - Block evaluation order and lifecycle
- Blocks API Reference - API documentation for retrieving block products