Loading...
Loading...
Use when working with Bagisto's EAV attribute system — adding or changing an attribute, attribute family or group, reading or writing a product attribute value, or debugging a value that reads back empty or from the wrong locale or channel. Trigger phrases include "attribute", "EAV", "attribute family", "attribute group", "attribute option", "custom attribute", "value_per_locale", "value_per_channel", "product_flat", "swatch".
npx skill4agent add bagisto/agent-skills bagisto-attribute-developmentproductsproduct_attribute_values| File | Load when |
|---|---|
| eav.md | How values are stored and resolved — the column map, scope, the flat index |
| attributes.md | Creating attributes, families, groups, options, validation and swatches |
attribute_families a product type's whole form (e.g. "Default")
└── attribute_groups a tab/section within it (e.g. "General")
└── attributes a field (e.g. "name")
└── attribute_options for select, multiselect and checkboxAttributeFamily::custom_attributes()AttributeGroup::custom_attributes()typeproduct_attribute_values| type | column |
|---|---|
| |
| |
| |
| |
| |
| |
Attribute::$attributeTypeFields$attribute->column_nameselecttext_valueAttributeTypeEnumValidationEnumnumericemaildecimalurlregexSwatchTypeEnumdropdowncolorimagetextvalue_per_localevalue_per_channel | | Rows per product |
|---|---|---|
| false | false | 1 |
| false | true | one per locale |
| true | false | one per channel |
| true | true | one per channel per locale |
Product::getCustomAttributeValue()(channel, locale, attribute_id, product_id)AttributeRepositoryAttributeFamilyRepositoryAttributeGroupRepositoryAttributeOptionRepositoryproduct_attribute_valuescolumn_name$attributeTypeFieldsvalue_per_localevalue_per_channelselectmultiselectselectinteger_valuemultiselecttext_valueattribute_option_translationstypeproduct_flat