2.0 Beta

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

What changed

Search and filters

The values of `filter` inside `smootify-search-discovery`.

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

At a glance

data-action="previous"data-action="next"

Previous and next

Shows
One page at a time.
Good to know
The best choice for large catalogs.
data-action="page"

Page numbers

Shows
One page at a time, with the numbers to jump to, between previous and next.
Good to know
On a collection, it needs the Availability filter (see Page numbers).
data-action="load"

Load more

Shows
The next page, added below the products shown, on a click.
Good to know
Every page adds cards, which slows phones down on large catalogs.
data-action="load-in-view"

Load as the visitor scrolls

Shows
The next page, added below when the button scrolls into view.
Good to know
Every page adds cards, which slows phones down on large catalogs.

More in the guide.

Where it can go

Values

Attribute and valueWhat it isNotes
filter="count"Result counton text
filter="active"Active filtersTemplate: one per active filter, a click removes it; on container, link, button
filter="active-label"Active filter labelon text
filter="active-count"Active filter counton text
filter="empty-state"Empty stateon container
data-action="load"Load moreon button; inside smootify-search-discovery, smootify-search-page
data-action="previous"Previous pageon button; inside smootify-search-discovery, smootify-search-page; also read as prev
data-action="next"Next pageon button; inside smootify-search-discovery, smootify-search-page
data-action="load-in-view"Load when in viewon button; inside smootify-search-discovery, smootify-search-page
data-action="page"Page number buttonTemplate: one per page number shown; the current page gets is-active; on button; inside smootify-search-discovery, smootify-search-page
filter="page-number"Page numberInside the page number button; without it, the button’s text; on text; inside smootify-search-discovery [data-action=“page”], smootify-search-page [data-action=“page”]
filter="page-ellipsis"Page gapTemplate where page numbers are skipped; optional; on text, container; inside smootify-search-discovery, smootify-search-page
filter="page-current"Current pageon text; inside smootify-search-discovery, smootify-search-page
filter="page-total"Total pagesEmpty until the total is known; on text; inside smootify-search-discovery, smootify-search-page
type="reset"Reset the filterson button; inside smootify-search-discovery, smootify-search-page

    ↑ ↓ to moveEnter to openEsc to close