{
    "schemaVersion": 2,
    "product": {
        "sku": "FS-7041",
        "name": "Pokale aus Metall 7041",
        "type": "figure-plate",
        "basePrice": 73.9,
        "tiers": [
            {
                "qty": 10,
                "pct": 10
            },
            {
                "qty": 50,
                "pct": 20
            }
        ],
        "tiersNote": "Mengenrabatt:",
        "inclLine": "Silbernes Gravurschild mit Wunschtext inklusive &middot; fertig montiert"
    },
    "canvas": {
        "width": 750,
        "height": 750
    },
    "assetBase": "/media/builder/pkfs7041/",
    "layers": [
        {
            "id": "figure",
            "type": "static",
            "image": "photos/front.webp"
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.4994,
                "y": 0.7799,
                "maxWidthPx": 106,
                "maxHeightPx": 50,
                "quad": [
                    [
                        312.7,
                        552.6
                    ],
                    [
                        436.3,
                        552.6
                    ],
                    [
                        436.3,
                        617.4
                    ],
                    [
                        312.7,
                        617.4
                    ]
                ]
            },
            "font": {
                "sizePx": 15,
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed"
            }
        }
    ],
    "categories": [
        {
            "id": "size",
            "title": "Größe",
            "type": "radio",
            "default": "420",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Gleiche Form in 3 Höhen",
            "options": [
                {
                    "id": "420",
                    "label": "42 cm · 73,90 €",
                    "sku": "FS-7041-X",
                    "price": 73.9
                },
                {
                    "id": "450",
                    "label": "45 cm · 76,90 €",
                    "sku": "FS-7042",
                    "price": 76.9
                },
                {
                    "id": "460",
                    "label": "46 cm · 77,90 €",
                    "sku": "FS-7043",
                    "price": 77.9
                }
            ]
        },
        {
            "id": "engravingMode",
            "title": "Gravur",
            "type": "radio",
            "note": "Silbernes Gravurschild, Gravur inklusive",
            "options": [
                {
                    "id": "text",
                    "label": "mit Wunschtext"
                },
                {
                    "id": "none",
                    "label": "ohne Wunschtext"
                }
            ],
            "alwaysOpen": true,
            "default": "text",
            "defaultCounts": true
        },
        {
            "id": "font",
            "title": "Schriftart",
            "type": "font-select",
            "visibleWhen": {
                "category": "engravingMode",
                "equals": "text"
            },
            "optionsFrom": "shared/fonts.json",
            "collapseOnSelect": true,
            "options": []
        },
        {
            "id": "customText",
            "title": "Wunschtext",
            "type": "textarea",
            "visibleWhen": {
                "category": "engravingMode",
                "equals": "text"
            },
            "maxLength": 90,
            "showCounter": true
        }
    ],
    "cart": {
        "productId": 1400,
        "addUrl": "/checkout/cart/add/product/1400/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 4440,
            "font": 4441,
            "preview": 4442
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "420": 5888,
                "450": 5788,
                "460": 5927
            }
        }
    }
}
