diff --git a/src/app/admin/products/actions.ts b/src/app/admin/products/actions.ts index 8c1bc5b..c2651da 100644 --- a/src/app/admin/products/actions.ts +++ b/src/app/admin/products/actions.ts @@ -74,6 +74,7 @@ export async function createProduct(formData: FormData) { const sizesInput = String(formData.get('sizes') ?? ''); const imageFile = formData.get('image') as File | null; const imageBackFile = formData.get('imageBack') as File | null; + const photoRecolorable = String(formData.get('photoRecolorable') ?? '') === '1'; const showOnPersonalised = String(formData.get('showOnPersonalised') ?? '') === '1'; const showAsPlain = String(formData.get('showAsPlain') ?? '') === '1'; diff --git a/src/components/PhotoPrintAreaField.tsx b/src/components/PhotoPrintAreaField.tsx index da6f5cc..3293618 100644 --- a/src/components/PhotoPrintAreaField.tsx +++ b/src/components/PhotoPrintAreaField.tsx @@ -110,51 +110,49 @@ export default function PhotoPrintAreaField({ )} - {!currentImageUrl || !showPrintAreaEditor ? ( - <> - - {variant === 'front' ? ( -
- Uploading a real photo replaces the illustration everywhere this product is shown. One - tradeoff: the color swatches below can no longer recolor a photo the way they recolor the - illustration — they'll still be saved with each order, but the picture itself stays - fixed. Leave this blank to keep using the illustration (which does recolor live). -
- ) : ( -- If set, customers get a Front/Back toggle and can add a separate design to the back — - drag a print-area box below just like the front. -
- )} ++ Uploading a real photo replaces the illustration everywhere this product is shown. One + tradeoff: the color swatches below can no longer recolor a photo the way they recolor the + illustration — they'll still be saved with each order, but the picture itself stays + fixed. Leave this blank to keep using the illustration (which does recolor live). +
+ ) : ( ++ If set, customers get a Front/Back toggle and can add a separate design to the back — + drag a print-area box below just like the front. +
+ )} - {currentImageUrl && !showPrintAreaEditor && ( -