dw_product_field_save
Create or update a product field attribute on a product category, with options for type, visibility, validation, and facet usage.
Instructions
Create or update a product field (attribute) on a product category.
Type can be a numeric TypeId or a short alias: text, longtext, checkbox, date, datetime, number, decimal, link, file, richtext, dropdown. Use dw_product_field_type_list for the full mapping.
Field SystemName becomes the key the frontend reads via the product CustomFields/CategoryFields structure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| categoryId | Yes | Owning category id, e.g. 'TechSpecs' | |
| systemName | Yes | PascalCase key, e.g. 'BatteryLife' | |
| name | Yes | Display name shown in DW Admin | |
| type | Yes | Type alias (text, number, ...) or numeric TypeId | |
| required | No | ||
| hidden | No | ||
| readonly | No | ||
| useAsFacet | No | ||
| languageEditing | No | ||
| variantEditing | No | ||
| description | No | ||
| validationPattern | No | ||
| validationErrorMessage | No |