Product grid card

Show products with a photo, name, price and previous price, plus a New, Sale or Low stock badge. The grid pages by itself on the wall clock.

Present each product with its photo, name, price and previous price. Mark products as New, Sale or Low stock with a badge, and page the grid automatically on the wall clock.

Live card

This card is drawn in your browser by the same code the Players run, with sample data.

Category: Retail. Tags: Stores, Prices and rates.

Data and privacy

This card uses its configured properties and live card data.

Properties

For theme, background, accent, colour overrides and position, see Common properties.

Static properties

NameTypeDefaultValues and limitsDescription
titlestring"Featured"maxLength: 40
currencystring"$"maxLength: 4Shown before every price.
perPageinteger6minimum: 1; maximum: 8
pageSecondsinteger10minimum: 5; maximum: 120

Dynamic properties

NameTypeDefaultValues and limitsDescription
productsarray[]minItems: 0; maxItems: 24Products in order. Pages hold perPage products, balanced, and turn every pageSeconds on the wall clock.
products[].namestringminLength: 1; maxLength: 60; Required
products[].detailstring""maxLength: 60A line under the name: size, origin, flavour.
products[].pricenumberminimum: 0; maximum: 1000000
products[].wasPricenumberminimum: 0; maximum: 1000000The earlier price, shown struck through. Above price, it also marks the product as on sale.
products[].badgestring"""", "new", "sale", "low-stock"Empty marks nothing, except that a wasPrice above price reads as sale.
products[].photostring""maxLength: 2048A project media reference (media:<id>) the host resolves; empty or failing shows a tile in the theme's colours with the product's initial.
updatedAtstring""maxLength: 40ISO instant for synchronized product update emphasis in Primetime.

Example params

{
  "theme": "neomustard"
}
screenrig card create --type product-grid --major 1 --file params.json --context-file context.md

Example data

{
  "products": [],
  "updatedAt": ""
}

Layouts

This fullscreen card fills the whole screen in landscape or portrait and is not placed as a corner, chip, or strip.

Layouts: full. Forms: landscape, portrait.

Use this card

Add this card to a playlist as in Publish a card canvas, place it with the layouts and anchors and update its data as in Write live values.