La funzione attributi dev'essere prevista dall'abbonamento del tuo negozio.
getAttributeFromLabel
Ottenere i dettagli di un attributo partendo dal nome.
getAttributeFromLabel(label)
| param | type | note | default |
|---|---|---|---|
| label | string | Nome dell'attributo |
{
"_id":{
"$id":"5d31e00516f46abd708b4578"
},
"groupUID":114501,
"label":"Codice fornitore esterno",
"type":"text",
"data":[ ... ] // only for select type attribute
}
getAttributeSet
Ottenere i dettagli di un attributo.
getAttributeSet(id)
| param | type | note | default |
|---|---|---|---|
| id | string | ID attributo |
getAttributeTypes
Ottenere tutti i possibili tipi di attributo.
getAttributeTypes()
["text","number","real","select","sorting","date","richeditor"]
getAttributes
Restituisce tutti gli attributi creati nel negozio
getAttributes(type)
| param | type | note | default |
|---|---|---|---|
| type | string | Tipo di attributo |
Usare la funzione getAttributeTypes per ottenere la lista dei tipi possibili.
Commenti