Ana içeriğe geç

getAttributeSetByMarker

Marker tarafından belirlenen bir nesne özellikleri setini alma

AttributesSets.getAttributeSetByMarker(marker, langCode)

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

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

langCode: string dil kodu örnek: en_US

Bu yöntem, özellik 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 değişiklik tarihi örnek: ''

version: number Nesne değişiklik sürüm numarası örnek: 10

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

title:* string Özellik setinin adı örnek: 'Sayfalar için set'

schema:* Record<string, string> Özellik 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