Dynamic tabs
Tabs that fill themselves in from each product's data: a specifications table, your own template with placeholders, or a custom field.
Set a Tab Builder card's Tab type to Dynamic (from product data), then choose what to Build content from. A dynamic tab is hidden on products where it would be empty.
Specifications table
Specifications table (SKU, weight, dimensions, stock, categories, tags) is the default source. It needs no setup: each product gets a two-column table with the rows that have a value.
| Row | Value |
|---|---|
| SKU | The product's SKU |
| Weight | Weight with your store's weight unit |
| Dimensions | Length × width × height with your dimension unit |
| Availability | In stock, Out of stock or On backorder |
| Categories | Product categories, comma-separated |
| Tags | Product tags, comma-separated |
- The Specifications tab open on a product page, second after Description
- Table rows: SKU SF-006, Weight 0.4 lbs, Dimensions 35 × 28 × 6 in, Availability In stock, Categories Midi Dresses, Tags workwear
Template with product placeholders
- The Fit Notes card: Tab type Dynamic, Build content from "Template with product placeholders"
- Template: Colors {attribute:pa_color}, Sizes {attribute:pa_size} and SKU {sku} in bold labels, with the list of placeholders below
- One condition: Product category is any of Midi Dresses
Write the tab's content yourself, with HTML, and use placeholders for product values. Each placeholder is replaced with the product's value as plain text.
| Placeholder | Replaced with |
|---|---|
{name} | Product name |
{sku} | SKU |
{price} | Current price with currency symbol |
{weight} | Weight with unit |
{dimensions} | Dimensions with unit |
{stock} | Stock status label |
{categories}, {tags} | Category or tag names, comma-separated |
{attribute:pa_color} | An attribute's values, by its slug (global attributes start with pa_) |
{meta:field_name} | A public product custom field |
The tab is hidden on a product when the result has no text, for example when every placeholder is empty. An unknown placeholder such as {colour} is left as typed.
- The Fit Notes tab open: "Colors: Orange", "Sizes: XS, S, M, L, XL" and "SKU: SF-006"
A product custom field
Choose A product custom field and enter the Custom field name, for example warranty. The field's value is shown as a paragraph, with line breaks kept, and the tab is hidden on products where the field is empty.
{meta:…} placeholders. Names may contain letters, numbers, hyphens and underscores.Good to know
- Dynamic tabs can't be replaced per product: on the product's Product Tabs panel they have only a title and Hide tab.
- Combine with conditions to show a tab only for some products, as the Fit Notes example does for one category.
- Developers can change the table rows or the result with the
siteryn_ptm_pro_dynamic_factsandsiteryn_ptm_pro_dynamic_contentfilters. See Hooks.