spryker-demo / product-attribute-set-feature
Product atrribute set [feature]
1.0.0
2025-04-10 18:17 UTC
Requires
- php: >=8.2
- spryker-demo/product-attribute-set: ^1.0.0
- spryker-demo/product-attribute-set-gui: ^1.0.0
Requires (Dev)
README
This feature introduces product attribute set functionality.
Installation
composer require spryker-demo/product-attribute-set-feature
Add SprykerDemo
namespace to configuration
$config[KernelConstants::CORE_NAMESPACES] = [
...
'SprykerDemo',
];
Adjust navigation configuration file
# config/Zed/navigation.xml
<attribute-sets>
<label>Attribute Sets</label>
<title>Attribute Sets</title>
<bundle>product-attribute-set-gui</bundle>
<controller>index</controller>
<action>index</action>
</attribute-sets>
Apply Twig customization
# src/Pyz/Zed/ProductAttributeGui/Presentation/View/product-abstract.twig
{% block content %}
{{ render(controller('/product-attribute-set-gui/render-form/attribute-set')) }}
...
{% endblock %}
# src/Pyz/Zed/ProductAttributeGui/Presentation/View/product.twig
{% block content %}
{{ render(controller('/product-attribute-set-gui/render-form/attribute-set')) }}
...
{% endblock %}