Open simonrl opened 1 month ago
I could reproduce this issue with CE 7.0.66 magento 2.4.7 connector 104.3.7 Annoying because you select all the colors for each swatch and in 1 second your work is gone.
edit: after a closer look, this line and the next should be properly changed: https://github.com/akeneo/magento2-connector-community/blob/1815946099086a8340b9bc001c47c804ee9ce1c1/Job/Option.php#L560 so that other types are checked as well like SWATCH_TYPE_VISUAL_ATTRIBUTE_FRONTEND_INPUT and the correspondent type is inserted like SWATCH_TYPE_VISUAL_COLOR or SWATCH_TYPE_VISUAL_IMAGE, etc.
@simonrl you may try the aforementioned PR that fixes the color/images issue. Tested with m2 2.4.7, php 8.3, akeneo 7.0.66 with sample data, connector 104.3.7
Environment and configuration
Steps to reproduce
Expected result
Actual result
Additional info
We also tried to remove the attribute again from the Akeneo-Connector-Configuration's attribute type mapping, which results in: "option"-import works fine, but "attribute" import changes the attribute type in Magento from "Visual Swatch" to "Drop Down". After this is changed manually, the swatch colors/images are still there.
The comment for the
Job/Option::insertSwatchOption()
reads...so how are we supposed to handle Visual Swatches, if no configuration seems to work?