2.0 Beta

Smootify 2.0 is in public beta. Your 1.x store keeps working. Move when you want.

What changed

Product

The values of `product` inside `smootify-product` or `smootify-variant` or `box-item`.

v2.0 beta
Open .md
On this page
  1. At a glance
  2. Where it can go
  3. Values

At a glance

product="url"
Put it on
A Text link.
Does
Gets the product page's link, and the product title when the link holds only text.
product="link"
Put it on
A Link block that wraps the image or the whole card.
Does
Gets the link only.
variant="image"
Put it on
An Image.
Does
Shows the image of the card's variant. Bound to the CMS Image field too, the CMS image shows until the product loads.
product="specific-image"
Put it on
An Image.
Does
One image by position: index="0" is the first, index="1" the second. Without index, the second image, such as a picture shown on hover.
product="min-price"product="max-price"
Shows
The lowest and the highest variant price.
Here
$29 (S) and $39 (XL).
product="min-available-price"
Shows
The price of the cheapest variant that can be bought.
Here
$32: S is sold out, so M.
product="min-compare-at-price"product="max-compare-at-price"
Shows
The lowest and the highest crossed-out price among the variants on sale. Hidden when none is on sale.
Here
$39 (S) and $45 (M).
condition="variable-price"condition="fixed-price"
Shows
variable-price: only when the variants have different prices. fixed-price: only when they all cost the same.
Here
The prices differ, so "From" shows.

More in the guide.

Where it can go

Values

Attribute and valueWhat it isNotes
product="title"Title—
product="vendor"VendorOn a link, it goes to the vendor; on text, link
product="description"Descriptionon rich, container
product="url"LinkThe title too, when empty; on link
product="link"Link onlyon link; inside smootify-product
product="specific-image"Image by positionindex counts from 0: 0 is the first image, and without it the second; on image, lightbox; set together with index=“1”
product="first-collection"First collectionon text, link
product="collections"CollectionsOne copy per collection; on text, link, container; inside smootify-product
product="category"Categoryinside smootify-product
product="type"Typeinside smootify-product
product="tags"TagsOne copy per tag; exclude takes a list; on text; inside smootify-product
product="option-values"Option valuesOne copy per value of the option; on container, text, button, link; inside smootify-product; set together with data-option=“1”
product="stock"StockEvery variant together; inside smootify-product
product="published-at"Published oninside smootify-product
product="created-at"Created oninside smootify-product
product="min-price"Lowest priceinside smootify-product
product="min-available-price"Lowest available priceinside smootify-product
product="max-price"Highest priceinside smootify-product
product="min-compare-at-price"Lowest compare-at priceinside smootify-product
product="max-compare-at-price"Highest compare-at priceinside smootify-product
product="gallery"GalleryHolds the gallery parts; on container; inside smootify-product
product="images"Images (deprecated: use Gallery)One copy per image; on image, link, lightbox, container; inside smootify-product; deprecated: use [product=“gallery”]
product="media"Media (deprecated: use Gallery)One copy per image, video or model; on image, link, lightbox, container; inside smootify-product; deprecated: use [product=“gallery”]
product="video"First videoon container, lightbox, video; inside smootify-product
product="videos"VideosOne copy each; on container, lightbox, video; inside smootify-product
product="external-video"First YouTube or Vimeoon youtube, lightbox, container; inside smootify-product
product="external-videos"YouTube and Vimeo videosOne copy each; on youtube, lightbox, container; inside smootify-product
product="model"3D modelon container; inside smootify-product; also read as models
index="0 is the first"Image number, from 0on image; with [product=“specific-image”]
exclude="tag,other tag"Leave outA comma list; spaces around the values are ignored; on text, link, container; with [product=“tags”], [product=“collections”], [product=“first-collection”]
data-option="1"Option numberon container, text, button, link; inside smootify-product; with [product=“option-values”]
data-option-name="Color, Colour"Option nameThe first of the names the product has; on container, text, button, link; inside smootify-product; with [product=“option-values”]

    ↑ ↓ to moveEnter to openEsc to close