Skip to content
  1. Extras
  2. PageBuilder
  3. Field types
  4. Pro
  5. products

Field products ​

Version: Pro, capability minishop3.

The inspector accepts ids separated by commas. Section data stores a string array. The type appears in the new-field dialog when miniShop3 is available: the MiniShop3 service exists, or the components/minishop3 directory is present. ProFeatureProvider then adds capability minishop3.

Built-in shop sections, for example comparison, store products in multirelation. This type does not put a price or an add-to-cart button into the chunk.

Similar types ​

Schema ​

json
{
  "name": "product_ids",
  "type": "products",
  "label": "Products"
}

Section data ​

json
{
  "product_ids": ["12", "18", "24"]
}

Chunk example ​

modx
[[+product_ids.0]]
fenom
{foreach $product_ids as $id}
  <span>{$id|escape}</span>
{/foreach}