Wocart

@wocart/storefront v3.1.0


@wocart/storefront / index / QuantityPricingSchema

Variable: QuantityPricingSchema

const QuantityPricingSchema: z.ZodObject<{ name: z.ZodString; offerId: z.ZodString; tiers: z.ZodArray<z.ZodObject<{ freeShipping: z.ZodBoolean; price: z.ZodNumber; quantity: z.ZodNumber; }, z.core.$strip>>; triggerVariantId: z.ZodNullable<z.ZodString>; }, z.core.$strip>

Quantity pricing — price tiers by quantity ("2 for 3,500 DA"). The highest tier the quantity reaches prices every unit at its per-unit price; the server's cart quote is the total.