super attributes structure in product_details

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