A widget that is used to get product interface.
{
"widgets": [
{
"name": "pim-ajax",
"type": "pim-ajax",
"params": {
"productId": "{{ Product.id }}",
"options": {"7804":"11519"}, // { "opt1_id": "opt1_val1_id, opt1_val2_id", "opt2_id": "opt2_val1_id" }
"settings": {
"designs": {
"enabled": true
},
"variants": {
"enabled": true
},
"mockups": {
"enabled": true
}
},
"eventsCallbacks": {
"options": {
"onError": "{{ #function(err) console.warn(err); }}",
"onSuccess": "{{ #function(response) console.warn(response); }}"
},
"designs": {
"onError": "{{ #function(err) console.warn(err); }}",
"onSuccess": "{{ #function(response) console.warn(response); }}"
},
"variants": {
"onError": "{{ #function(err) console.warn(err); }}",
"onSuccess": "{{ #function(response) console.warn(response); }}"
}
}
}
]
}
}
]
}
Properties
Declaration
choices: Record<string, number[]>
Property Value
Type |
Description |
Record<string, number[]> |
|
Declaration
Property Value
Declaration
Property Value
Declaration
options: Record<string, string | string[]>
Property Value
Type |
Description |
Record<string, string | string[]> |
|
Declaration
Property Value
Declaration
Property Value
Declaration
productVersionId?: number
Property Value
Declaration
Property Value