2.0 Beta

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

What changed

free-shipping-bar

Shows the progress towards free shipping from the cart.

v2.0 beta
Open .md
On this page
  1. At a glance
  2. Where it can go
  3. What it requires
  4. Attributes on the element
  5. Attributes inside it
  6. Loading

At a glance

free-shipping-condition="needs-more"

Before the goal

Text
data-prop="left" shows what is missing: €35.00.
Bar
data-prop="progress-width" is 65% wide.
free-shipping-condition="free-shipping"

After the goal

Class
free-shipping-bar gets is-free.
Bar
Goes on past 100%: give its track Overflow: hidden.

More in the guide.

Where it can go

  • Anywhere on the page.
  • Out of place, it stays in the page and does nothing: no context required.

What it requires

Nothing beyond Smootify: it works on every plan.

Attributes on the element

  • It reads data-amount, data-quantity.

Attributes inside it

GroupAttribute nameValues
Free shipping bardata-prop2
Free shipping (condition)free-shipping-condition2

Loading

Its code loads only on pages that have free-shipping-bar.

    ↑ ↓ to moveEnter to openEsc to close