{
    "schemaVersion": 2,
    "product": {
        "sku": "BS-X301.02",
        "name": "Siegerpokale 02.X301",
        "type": "figure-plate",
        "basePrice": 30.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/pkx30102/",
    "layers": [
        {
            "id": "figure",
            "type": "static",
            "image": "photos/front.webp"
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.499,
                "y": 0.8114,
                "maxWidthPx": 101,
                "maxHeightPx": 29,
                "quad": [
                    [
                        315,
                        589.3
                    ],
                    [
                        433.5,
                        589.3
                    ],
                    [
                        433.5,
                        627.8
                    ],
                    [
                        315,
                        627.8
                    ]
                ]
            },
            "font": {
                "sizePx": 12,
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed"
            }
        }
    ],
    "categories": [
        {
            "id": "size",
            "title": "Größe",
            "type": "radio",
            "default": "380",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Gleiche Form in 3 Höhen",
            "options": [
                {
                    "id": "380",
                    "label": "38 cm · 30,90 €",
                    "sku": "BS-X301.02-X",
                    "price": 30.9
                },
                {
                    "id": "440",
                    "label": "44 cm · 36,90 €",
                    "sku": "BS-X302.02",
                    "price": 36.9
                },
                {
                    "id": "500",
                    "label": "50 cm · 42,90 €",
                    "sku": "BS-X303.02",
                    "price": 42.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": 1271,
        "addUrl": "/checkout/cart/add/product/1271/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 4215,
            "font": 4216,
            "preview": 4217
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "380": 5821,
                "440": 5852,
                "500": 5789
            }
        }
    }
}
