resolveTierTemplate
resolveTierTemplate(
template,tier):string
Defined in: .pnpm/@[email protected]_graphql@[email protected]_typescript@6.0.3/node_modules/@storesynk/core/dist/product/volume-discounts.d.ts:154
Resolve a tier’s title/label template at render time: {quantity} → the
tier quantity, {discount} → e.g. “10%” (percentage tiers ONLY - a
none-tier’s string stays as typed). Everything else is verbatim: the
merchant types the + in “Buy {quantity}+” themselves. This substitution
is a public contract with the app (which stores the templates verbatim).
Parameters
Section titled “Parameters”template
Section titled “template”string
Returns
Section titled “Returns”string