isVolumeDiscountLive
isVolumeDiscountLive(
entry,now?):boolean
Defined in: .pnpm/@[email protected]_graphql@[email protected]_typescript@6.0.3/node_modules/@storesynk/core/dist/product/volume-discounts.d.ts:101
Whether a discount should render right now: status === "active" (drafts
keep their metaobject, unlike bundles) and the current time is inside
[startsAt, endsAt] (both inclusive). The fields are full ISO UTC datetimes
(the discount node’s own window); date-only values are tolerated with the
same local-day semantics as bundles. Unparseable bounds are ignored - the
node’s scheduler is authoritative at checkout either way.
Parameters
Section titled “Parameters”Date
Returns
Section titled “Returns”boolean