super attributes structure in product_details

super attributes structure in product_details
mail@pastecode.io avatar
unknown
json
2 years ago
1.1 kB
7
Indexable
Never
super_attributes = {
    "92": {
        type: "Color",
        values: {
            "12": {
                label: "Red",
                value: "#fff",
                price: null
            },
            "34": {
                label: "Blue",
                value: "#343434"
                price: 45
            },
            ...
        }
    },
    "78": {
        type: "Size",
        values: {
            "11": {
                label: "S",
                value: "S",
                price: 45
            },
            "70": {
                label: "XL",
                value: "XL",
                price: null
            },
            ...
        }
    },
    "65": {
        type: "Radio",
        values: {
            "33": {
                label: "?",
                value: "?"
                price: ?
            },
            "89": {
                label: "?",
                value: "?"
                price: ?
            },
            ...
        }
    },
    ...
}