{
    "schemaVersion": 2,
    "product": {
        "sku": "ST-3870X",
        "name": "Fußball Torwart Pokal Torwarthandschuhe 140, 170 oder 200 mm mit Gravurschild",
        "type": "figure-plate",
        "basePrice": 15.9,
        "tiers": [
            {
                "qty": 10,
                "pct": 10
            },
            {
                "qty": 50,
                "pct": 20
            }
        ],
        "tiersNote": "Mengenrabatt:",
        "inclLine": "Gravurschild mit Wunschtext inklusive &middot; fertig montiert"
    },
    "canvas": {
        "width": 750,
        "height": 750
    },
    "assetBase": "/media/builder/sttw3/",
    "layers": [
        {
            "id": "figure",
            "type": "static",
            "image": "photos/front.webp"
        },
        {
            "id": "plate",
            "type": "static",
            "image": "plates/plate-gold.png"
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.4695,
                "y": 0.8834,
                "maxWidthPx": 163,
                "maxHeightPx": 61,
                "quad": [
                    [
                        257.3,
                        623.3
                    ],
                    [
                        447,
                        623.3
                    ],
                    [
                        447,
                        701.8
                    ],
                    [
                        257.3,
                        701.8
                    ]
                ]
            },
            "font": {
                "sizePx": 22,
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed"
            }
        }
    ],
    "categories": [
        {
            "id": "size",
            "title": "Größe",
            "type": "radio",
            "default": "140",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Gleiche Figur in drei Größen, Gravurschild wächst mit",
            "options": [
                {
                    "id": "140",
                    "label": "140 mm · 15,90 €",
                    "sku": "ST-38703",
                    "price": 15.9
                },
                {
                    "id": "170",
                    "label": "170 mm · 18,90 €",
                    "sku": "ST-38702",
                    "price": 18.9
                },
                {
                    "id": "200",
                    "label": "200 mm · 24,90 €",
                    "sku": "ST-38701",
                    "price": 24.9
                }
            ]
        },
        {
            "id": "engravingMode",
            "title": "Gravur",
            "type": "radio",
            "note": "Goldenes Gravurschild (140 mm: 50 × 20 mm · 170 und 200 mm: 63 × 26 mm), 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": 1952,
        "addUrl": "/checkout/cart/add/product/1952/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 602,
            "font": 603,
            "preview": 604
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "140": 5753,
                "170": 5754,
                "200": 5744
            }
        }
    }
}
