{
    "schemaVersion": 2,
    "product": {
        "sku": "CP-D103 X901.09",
        "name": "Poker/Skat Pokal D103 x901.09",
        "type": "figure-plate",
        "basePrice": 9.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/pkd10309/",
    "layers": [
        {
            "id": "figure",
            "type": "static",
            "image": "photos/front.webp"
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.5017,
                "y": 0.8546,
                "maxWidthPx": 124,
                "maxHeightPx": 40,
                "quad": [
                    [
                        303.8,
                        614.9
                    ],
                    [
                        448.7,
                        614.9
                    ],
                    [
                        448.7,
                        667
                    ],
                    [
                        303.8,
                        667
                    ]
                ]
            },
            "font": {
                "sizePx": 17,
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed"
            }
        }
    ],
    "categories": [
        {
            "id": "size",
            "title": "Größe",
            "type": "radio",
            "default": "220",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Gleiche Form in 3 Höhen",
            "options": [
                {
                    "id": "220",
                    "label": "22 cm · 9,90 €",
                    "sku": "CP-D103-X901.09",
                    "price": 9.9
                },
                {
                    "id": "250",
                    "label": "25 cm · 11,90 €",
                    "sku": "CP-D103-X902.09",
                    "price": 11.9
                },
                {
                    "id": "280",
                    "label": "28 cm · 13,90 €",
                    "sku": "CP-D103-X903.09",
                    "price": 13.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": 926,
        "addUrl": "/checkout/cart/add/product/926/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 3750,
            "font": 3751,
            "preview": 3752
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "220": 5990,
                "250": 5824,
                "280": 5810
            }
        }
    }
}
