diff --git a/src/lib/components/ProductForm.svelte b/src/lib/components/ProductForm.svelte index a2ea3314b..c34e9dee1 100644 --- a/src/lib/components/ProductForm.svelte +++ b/src/lib/components/ProductForm.svelte @@ -768,7 +768,6 @@ placeholder="Max quantity per order" step="1" min="1" - max="99" value={product.maxQuantityPerOrder || DEFAULT_MAX_QUANTITY_PER_ORDER} /> diff --git a/src/routes/(app)/admin[[hash=admin_hash]]/product/product-schema.ts b/src/routes/(app)/admin[[hash=admin_hash]]/product/product-schema.ts index 209f093ad..a507d7f00 100644 --- a/src/routes/(app)/admin[[hash=admin_hash]]/product/product-schema.ts +++ b/src/routes/(app)/admin[[hash=admin_hash]]/product/product-schema.ts @@ -37,7 +37,7 @@ export const productBaseSchema = () => ({ standalone: z.boolean({ coerce: true }).default(false), free: z.boolean({ coerce: true }).default(false), stock: z.number({ coerce: true }).int().min(0).optional(), - maxQuantityPerOrder: z.number({ coerce: true }).int().min(1).max(99).optional(), + maxQuantityPerOrder: z.number({ coerce: true }).int().min(1).optional(), eshopVisible: z.boolean({ coerce: true }).default(false), retailVisible: z.boolean({ coerce: true }).default(false), nostrVisible: z.boolean({ coerce: true }).default(false),