Skip to content

Commit 247e834

Browse files
filter added in dev-doc
1 parent 387dc90 commit 247e834

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/templating/twig_function_reference/product_twig_functions.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,15 @@ The `ibexa_is_pim_local` is a helper Twig function that enables changing the beh
129129
<button type="button">Modify product data</button>
130130
</div>
131131
{% endif %}
132+
```
133+
134+
### `ibexa_product_catalog_group_attributes`
135+
136+
The `ibexa_product_catalog_group_attributes` filter groups product attributes (configured in `ibexa_product_catalog_group_attributes`).
137+
138+
#### Example
139+
140+
``` html+twig
141+
{% for group, attributes in product.attributes | ibexa_product_catalog_group_attributes %}
142+
{{ group.getIdentifier() }}:{{ attributes|map(attribute => attribute.getAttributeDefinition().getIdentifier())|join(' ') }}
132143
```

0 commit comments

Comments
 (0)