Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Brinde de checkout ativo na vitrine.
storefront.gifts.list()
storefront.gifts.eligible()
data: ['gifts']
id
string
name
description
string | null
minCartQuantity
maxCartQuantity
number | null
minCartTotal
maxCartTotal
priority
number
startsAt
endsAt
targetProduct
unknown
product
GiftProduct | null
slug
image
pricing.price
pricing.compareAtPrice
variants[]
title
price
stock
const { nodes: gifts } = await storefront.gifts.list({ subtotal: cart?.subtotalPrice ?? 0, }); gifts.map((gift) => ( <div key={gift.id}> <img src={gift.product?.image || ''} alt={gift.name} /> <p>{gift.name}</p> </div> ));
Was this page helpful?