Commmerce Docs

What it is

Heart-toggle that adds the current variant to the wishlist.

When to use

  • Beside the title
  • Inside the buy box

Attributes

AttributeTypeDefaultDescription
data-product-idstringcontextInherited from the surroundingor.
idstringUnique element identifier.
classstringCustom CSS class list.
hiddenbooleanfalseHide the element without removing it from the DOM.

Examples

Default

Variant-aware heart toggle.

<mmm-pdp-wishlist></mmm-pdp-wishlist>