{
    "schemaVersion": 2,
    "product": {
        "sku": "FS-4901",
        "name": "Pokale in Bronze 4901",
        "type": "figure-plate",
        "basePrice": 41.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/pkfs4901/",
    "layers": [
        {
            "id": "figure",
            "type": "static",
            "image": "photos/front.webp"
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.5006,
                "y": 0.8154,
                "maxWidthPx": 103,
                "maxHeightPx": 42,
                "quad": [
                    [
                        315.3,
                        584.5
                    ],
                    [
                        435.6,
                        584.5
                    ],
                    [
                        435.6,
                        638.5
                    ],
                    [
                        315.3,
                        638.5
                    ]
                ]
            },
            "font": {
                "sizePx": 15,
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed"
            }
        }
    ],
    "categories": [
        {
            "id": "size",
            "title": "Größe",
            "type": "radio",
            "default": "310",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Gleiche Form in 4 Höhen",
            "options": [
                {
                    "id": "310",
                    "label": "31 cm · 41,90 €",
                    "sku": "FS-4901-X",
                    "price": 41.9
                },
                {
                    "id": "360",
                    "label": "36 cm · 46,90 €",
                    "sku": "FS-4902",
                    "price": 46.9
                },
                {
                    "id": "440",
                    "label": "44 cm · 54,90 €",
                    "sku": "FS-4903",
                    "price": 54.9
                },
                {
                    "id": "480",
                    "label": "48 cm · 58,90 €",
                    "sku": "FS-4904",
                    "price": 58.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": 1363,
        "addUrl": "/checkout/cart/add/product/1363/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 4359,
            "font": 4360,
            "preview": 4361
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "310": 5811,
                "360": 5820,
                "440": 5852,
                "480": 5806
            }
        }
    }
}
