Wocart

@wocart/storefront v3.1.0


@wocart/storefront / index / ProductQuoteInputSchema

Variable: ProductQuoteInputSchema

const ProductQuoteInputSchema: z.ZodObject<{ offerId: z.ZodOptional<z.ZodString>; productId: z.ZodString; productName: z.ZodString; quantity: z.ZodOptional<z.ZodNumber>; variantId: z.ZodOptional<z.ZodString>; variantLabel: z.ZodOptional<z.ZodString>; variantSelections: z.ZodOptional<z.ZodArray<z.ZodObject<{ variantId: z.ZodString; variantLabel: z.ZodOptional<z.ZodString>; }, z.core.$strip>>>; }, z.core.$strip>

One product as a product page's order form posts it: a quantity, or a variant chosen per unit, and an offer tier. The quote reads these the way the order does, so the page asks with exactly what its form will submit.