Add product dimensions and downloadable design specification sheet
- Add printAreaWidthMm and printAreaHeightMm fields to Product model - Create API endpoint to generate design specs with CM measurements - Add download button to order detail page - Specs include design elements with positions/sizes in centimeters
This commit is contained in:
@@ -37,6 +37,8 @@ model Product {
|
||||
mockup String // which SVG mockup component to render, e.g. "tshirt" | "hoodie" | "mug" | "phonecase"
|
||||
printArea String // JSON: {"xPct":..,"yPct":..,"wPct":..,"hPct":..}
|
||||
printAreaBack String? // same shape, for the back print area — only used when imageUrlBack is set
|
||||
printAreaWidthMm Int @default(200) // width of the printable area in millimeters
|
||||
printAreaHeightMm Int @default(280) // height of the printable area in millimeters
|
||||
imageUrl String? // optional real product photo — shown instead of the illustration when set
|
||||
imageUrlBack String? // optional back-view photo, toggled alongside the front photo
|
||||
photoRecolorable Boolean @default(false) // if true, the photo is treated as a grayscale
|
||||
|
||||
Reference in New Issue
Block a user