getVolumeDiscounts
getVolumeDiscounts(
productId,namespace,locale?,opts?):Promise<VolumeDiscountAdoptData|null>
Defined in: @storesynk/astro/dist/runtime.d.ts:78
The volume-discount discovery data for a product (the dedicated VOLUME_DISCOUNTS query - product refs + shop refs + collection ids in ONE request), normalized to the shape the server transform and client adoption both consume. Module-cached per product+namespace+locale, like getProductMetafields. Null when the product wasn’t found.
Parameters
Section titled “Parameters”productId
Section titled “productId”string
namespace
Section titled “namespace”string
locale?
Section titled “locale?”I18nState | null
Returns
Section titled “Returns”Promise<VolumeDiscountAdoptData | null>