Skip to main content
Each example needs the Loveful app embed on. Where Liquid reads Loveful’s metafields, replace app--1234567 with the namespace in your loveful-wishlist snippet (Settings > Storefront fills it in).

Save button in a quick view

Quick views are usually fetched and inserted after the page loads. The button sets itself up when it’s inserted, so render it like any other markup:
snippets/quick-view.liquid
If the quick view’s variant picker doesn’t fire a standard variant event, tell Loveful when it changes:

Save button beside add to cart

Inside the theme’s product form, sized like its buttons:
snippets/buy-buttons.liquid

Show a save button only once Loveful is running

Render it hidden: Loveful removes hidden when it sets the button up, so it never shows while the app embed is off.

”Saved by” on product cards

The product’s saved count, read straight from its metafield. It doesn’t follow the shopper’s own saves; for that, use <loveful-saved-count>.
snippets/card-product.liquid

”My account” wishlist count

templates/customers/account.liquid

Clear wishlist button

The wishlist’s cards and every count update from the item_removed events clear() fires. Your own button, with Loveful doing the work:
templates/customers/account.liquid
Or straight from the bus:
templates/page.shared-wishlist.liquid

Add-to-wishlist toast

assets/wishlist-toast.js

Wishlist saves in GA4 from a custom pixel

Custom pixel

Card hearts that match the theme

Set on the element, so the theme’s colour scheme variables resolve on the card:

Pill-shaped save button