{
    "schemaVersion": 2,
    "product": {
        "sku": "BS-S3-ST.120.01-1",
        "name": "Pokale mit Sternen ST.120.01",
        "type": "cup-emblem",
        "basePrice": 18.9,
        "tiers": [
            {
                "qty": 10,
                "pct": 10
            },
            {
                "qty": 50,
                "pct": 20
            }
        ],
        "tiersNote": "Mengenrabatt:",
        "inclLine": "Emblem, Gravurschild und Wunschtext inklusive &middot; fertig montiert"
    },
    "canvas": {
        "width": 750,
        "height": 750
    },
    "assetBase": "/media/builder/pkst12001/",
    "layers": [
        {
            "id": "photo",
            "type": "static",
            "image": "photos/front.jpg"
        },
        {
            "id": "logoSmall",
            "type": "upload",
            "category": "logo",
            "clip": {
                "shape": "circle",
                "points": [
                    {
                        "x": 0.4564,
                        "y": 0.70262
                    },
                    {
                        "x": 0.53426,
                        "y": 0.78048
                    }
                ]
            }
        },
        {
            "id": "textSmall",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.4997,
                "y": 0.8826,
                "maxWidthPx": 148,
                "maxHeightPx": 48
            },
            "font": {
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed",
                "sizePx": 20
            }
        }
    ],
    "categories": [
        {
            "id": "size",
            "title": "Größe",
            "type": "radio",
            "default": "250",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Gleicher Pokal in 3 Höhen",
            "options": [
                {
                    "id": "250",
                    "label": "25 cm · 18,90 €",
                    "sku": "BS-ST.120.01.A",
                    "price": 18.9
                },
                {
                    "id": "270",
                    "label": "27 cm · 21,90 €",
                    "sku": "BS-ST.120.01.B",
                    "price": 21.9
                },
                {
                    "id": "290",
                    "label": "29 cm · 26,90 €",
                    "sku": "BS-ST.120.01.C",
                    "price": 26.9
                }
            ]
        },
        {
            "id": "logo",
            "title": "Eigenes Logo im Emblemhalter (optional)",
            "type": "fileUpload",
            "accept": [
                "png",
                "jpg",
                "jpeg",
                "pdf"
            ],
            "maxSizeMb": 10
        },
        {
            "id": "engravingMode",
            "title": "Gravur",
            "type": "radio",
            "alwaysOpen": true,
            "default": "text",
            "defaultCounts": true,
            "note": "Goldenes Gravurschild auf dem Sockel, Gravur inklusive",
            "options": [
                {
                    "id": "text",
                    "label": "mit Wunschtext"
                },
                {
                    "id": "none",
                    "label": "ohne Wunschtext"
                }
            ]
        },
        {
            "id": "font",
            "title": "Schriftart",
            "type": "font-select",
            "visibleWhen": {
                "category": "engravingMode",
                "equals": "text"
            },
            "optionsFrom": "shared/fonts.json",
            "collapseOnSelect": true
        },
        {
            "id": "customText",
            "title": "Wunschtext",
            "type": "textarea",
            "visibleWhen": {
                "category": "engravingMode",
                "equals": "text"
            },
            "maxLength": 105,
            "showCounter": true
        }
    ],
    "cart": {
        "productId": 756,
        "addUrl": "/checkout/cart/add/product/756/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 5085,
            "font": 5086,
            "preview": 5088,
            "motif": 5084,
            "logo": 5087
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "250": 5824,
                "270": 5829,
                "290": 5951
            }
        }
    }
}
