Commmerce Docs

What it is

Appears on scroll past the buy box. Mobile-only by default.

When to use

  • Long PDPs where the main CTA scrolls off-screen
  • Mobile-only sticky bar

Attributes

AttributeTypeDefaultDescription
data-product-idstringcontextInherited from the surroundingor.
data-breakpointstringtabletHide above this breakpoint.
data-show-afternumber400Pixels scrolled before appearing.
idstringUnique element identifier.
classstringCustom CSS class list.
hiddenbooleanfalseHide the element without removing it from the DOM.

Examples

Default

Mobile-only sticky bar.

<mmm-pdp-sticky-add-to-cart></mmm-pdp-sticky-add-to-cart>