Entities

Product

Product entity - components, queries, links, and related actions

Your storefront encounters the Product entity when fetching catalog data: category listings, search results, and product detail pages. A Product holds general information about a buyable good or service. It is not buyable by itself; instead, each Product links to one or more ProductVariant entities that represent the actual purchasable SKUs.

Components

Base

ProductBase

base
Product name and URL slug.
name
stringrequired

Name of the base-product. Variants may also have names for further description.

slug
stringrequired

Slug for usage in URLs.

Description

ProductDescription

description
Full HTML-formatted product description.
html
stringrequired

Flags

ProductFlags

flags
Marketing labels like "New", "Sale", or "Bestseller".
array
variant
stringrequired

Style of the flag.

label
stringrequired

Text of the flag.

Info

ProductInfo

info
Cover image, short description, and brand reference. Used on product tiles and listing pages.
shortDescription
string

Short product description. This may be used as subtitle on product-tiles. Not to be confused with the description-component which is the full html-description of a product.

brand
string

Brand of the product. Can also be used for manufacturer or vendor name.

Media

ProductMedia

media
All product images and videos, including the cover image at index 0.

Prices

ProductPrices

prices
Aggregate pricing across all variants: selling price, strikethrough price, sale indicators, and unit pricing.
isOnSale
booleanrequired

If true, indicates that the product is discounted from its original price. See strikethroughPrice for the original price and savingsPercent for the percentage of discount.

savingsPercent
number

Percentage of discount from the strikethroughPrice.

isStartingFrom
booleanrequired

If true, indicates that there are multiple variants with different prices. Can be used in the frontend to indicate a starting-from price, e.g. "from 100 EUR".

Rating

ProductRating

rating
Average review score (1-5) and total review count.
average
numberrequired

A rating between 1 and 5. That's the most common rating scale. No other scale is supported at the moment. Decimals are allowed.

min1max5
count
numberrequired

Number of ratings.

SEO

ProductSeo

seo
Meta title, description, and robots directive for the product detail page.
title
string
description
string
robots
string

E.g. "index, follow", "noindex, nofollow", etc.

Analytics

ProductAnalytics

analytics
Query parameters for PDP links and custom tracking fields.
pdpLinkQuery
Record<string, string>

Query parameters to be added to the product detail page link.

custom
Record<string, unknown>

Brand

ProductBrand

brand
Brand or manufacturer name with an optional link to the brand page.
name
string

Name of the brand.

Default Variant

ProductDefaultVariant

defaultVariant
Preferred variant ID or option values to preselect on the product detail page.
id
string

Some products may have a default variant or prefer showing a specific color-variant by default. Respecting this property is up to the frontend components.

options
string[]

A default variant can also be specified by a list of option values instead of a single id. E.g. ["clay", "small"] or ["red", "2xl", "cotton"] Respecting this property is up to the frontend components.

Queries

  • ProductAllCategories Category multi - All categories the product is assigned to.
  • ProductBreadcrumb BreadcrumbItem multi - Breadcrumb items for the product detail page.
  • ProductReviews Review multi - User-generated product reviews.
  • ProductVariants ProductVariant multi - The actual buyable SKUs. A Product must always link to at least one ProductVariant.
  • Cart - Shopping session that can contain this product's variants as line items.
  • MenuItem - Navigation menu entries that may link to this product.