Ana içeriğe geç

getAttributeSetByMarker

Marker ile belirlenen bir nesne özellikleri setini alma

AttributesSets.getAttributeSetByMarker(marker, langCode)

const value = await AttributesSets.getAttributeSetByMarker('my-marker')
Şema

marker:* string özellikler setinin metin tanımlayıcısı (marker) örnek: 'form'

langCode: string dil kodu örnek: en_US

Bu yöntem, özellikler setinden verilerle bir özellik döndürür.

Örnek dönüş:

{
"id": 1764,
"updatedDate": "2025-01-31T22:25:11.952Z",
"version": 10,
"identifier": "my-id",
"title": "Sayfalar için Set",
"schema": {
"attribute1": {
"id": 1,
"type": "string",
"isPrice": false,
"original": true,
"identifier": "string",
"localizeInfos": {
"en_US": {
"title": "String"
}
}
}
},
"isVisible": true,
"type": {
"id": 5,
"type": "forProducts"
},
"position": 1
}
Şema

id: number Nesne tanımlayıcısı örnek: 1764

updatedDate: string($date-time) Nesne güncelleme tarihi örnek: ''

version: number Nesne güncelleme sürüm numarası örnek: 10

identifier:* string Kayıt alanı için metin tanımlayıcısı örnek: 'my-id'

title:* string Özellikler setinin adı örnek: 'Sayfalar için Set'

schema:* Record<string, string> Özellikler setinin JSON şeması (set tarafından kullanılan özellikler) örnek:

{
"attribute1": {
"id": 1,
"type": "string",
"isPrice": false,
"original": true,
"identifier": "string",
"localizeInfos": {
"en_US": {
"title": "String"
}
}
}
}

isVisible:* boolean Setin görünürlük bayrağı

type:* object Set türü nesnesi

position:* number Pozisyon numarası örnek: 1