The project aim is a simple graphical extension for Magento 2. The needs are showing the attribute color (visual swatch) grouped by name prefix.
--> Color (attribute):
--- > Standard Red
--- > Standard Blue
--- > Standard White
--- > Standard Black
--- > Laquered Red
--- > Laquered Blue
--- > Laquered White
--- > Laquered Black
The idea is using the prefix wrote in the label of the attribute item as title of the group. So the customer could see the items like in the screenshot attached. The extension must have a control panel where set the name of the attribute to use with this feature.
Magento 2 uses the following files, and we need to customize these files:
-magento2/app/code/Magento/Swatches/view/frontend/templates/product/view/[url removed, login to view]
- magento2/app/code/Magento/Swatches/view/frontend/web/js/[url removed, login to view]