{
    "schemaVersion": 2,
    "product": {
        "sku": "BS-S3-ST.305.15",
        "name": "3er Fußball Pokale ST.305.15",
        "type": "cup-emblem",
        "basePrice": 21.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/pkst30515/",
    "layers": [
        {
            "id": "photo",
            "type": "static",
            "image": "photos/front.jpg"
        },
        {
            "id": "logoSmall",
            "type": "upload",
            "category": "logo",
            "clip": {
                "shape": "circle",
                "points": [
                    {
                        "x": 0.45553,
                        "y": 0.72198
                    },
                    {
                        "x": 0.53691,
                        "y": 0.80336
                    }
                ]
            }
        },
        {
            "id": "textSmall",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.498,
                "y": 0.8954,
                "maxWidthPx": 129,
                "maxHeightPx": 40
            },
            "font": {
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed",
                "sizePx": 17
            }
        }
    ],
    "categories": [
        {
            "id": "size",
            "title": "Größe",
            "type": "radio",
            "default": "245",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Gleicher Pokal in 3 Höhen",
            "options": [
                {
                    "id": "245",
                    "label": "24,5 cm · 21,90 €",
                    "sku": "BS-G50/20.ST.305.15.A",
                    "price": 21.9
                },
                {
                    "id": "265",
                    "label": "26,5 cm · 26,90 €",
                    "sku": "BS-G50/20.ST.305.15.B",
                    "price": 26.9
                },
                {
                    "id": "285",
                    "label": "28,5 cm · 31,90 €",
                    "sku": "BS-G50/20.ST.305.15.C",
                    "price": 31.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": 609,
        "addUrl": "/checkout/cart/add/product/609/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 5125,
            "font": 5126,
            "preview": 5128,
            "motif": 5124,
            "logo": 5127
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "245": 6015,
                "265": 5915,
                "285": 6018
            }
        }
    }
}
