Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong image handling for simple products leads to duplicate images #116

Closed
mmenozzi opened this issue Jan 28, 2022 · 0 comments · Fixed by #117
Closed

Wrong image handling for simple products leads to duplicate images #116

mmenozzi opened this issue Jan 28, 2022 · 0 comments · Fixed by #117
Assignees
Labels
bug Something isn't working

Comments

@mmenozzi
Copy link
Member

mmenozzi commented Jan 28, 2022

There's an issue handling images for simple products.

Here the ImageValueHandler associates the imported image to both product and product variants even for simple products (products with only one variant).

This is wrong because in the Sylius admin UI when the simple product is saved Sylius removes the relation between the image and the product variant.

Then, when the same product is imported again with this Akeneo plugin the image gets duplicated because the method ImageValueHandler::getExistentProductVariantImage() doesn't return any image because the relation with the variant does not exist anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants