{
    "schemaVersion": 2,
    "product": {
        "sku": "FS-1121",
        "name": "Designer Pokale 1121",
        "type": "figure-plate",
        "basePrice": 22.9,
        "tiers": [
            {
                "qty": 10,
                "pct": 10
            },
            {
                "qty": 50,
                "pct": 20
            }
        ],
        "tiersNote": "Mengenrabatt:",
        "inclLine": "Goldenes Gravurschild mit Wunschtext inklusive &middot; fertig montiert"
    },
    "canvas": {
        "width": 750,
        "height": 750
    },
    "assetBase": "/media/builder/pkfs1121/",
    "layers": [
        {
            "id": "figure",
            "type": "static",
            "image": "photos/front.webp"
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.5024,
                "y": 0.8718,
                "maxWidthPx": 125,
                "maxHeightPx": 42,
                "quad": [
                    [
                        303.8,
                        626.5
                    ],
                    [
                        449.8,
                        626.5
                    ],
                    [
                        449.8,
                        681.2
                    ],
                    [
                        303.8,
                        681.2
                    ]
                ]
            },
            "font": {
                "sizePx": 18,
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed"
            }
        }
    ],
    "categories": [
        {
            "id": "size",
            "title": "Größe",
            "type": "radio",
            "default": "290",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Gleiche Form in 3 Höhen",
            "options": [
                {
                    "id": "290",
                    "label": "29 cm · 22,90 €",
                    "sku": "FS-1121-X",
                    "price": 22.9
                },
                {
                    "id": "310",
                    "label": "31 cm · 25,90 €",
                    "sku": "FS-1122",
                    "price": 25.9
                },
                {
                    "id": "330",
                    "label": "33 cm · 27,90 €",
                    "sku": "FS-1123",
                    "price": 27.9
                }
            ]
        },
        {
            "id": "engravingMode",
            "title": "Gravur",
            "type": "radio",
            "note": "Goldenes 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": 1301,
        "addUrl": "/checkout/cart/add/product/1301/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 4260,
            "font": 4261,
            "preview": 4262
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "290": 5951,
                "310": 5811,
                "330": 5851
            }
        }
    }
}
