webgriffe / SyliusAkeneoPlugin

Plugin allowing to import data from Akeneo PIM to your Sylius store.
https://webgriffe.github.io/SyliusAkeneoPlugin/
MIT License
23 stars 3 forks source link

[BUG] - Changing family variant on Akeneo product will break the import of the product #177

Open lruozzi9 opened 11 months ago

lruozzi9 commented 11 months ago

If the family variant changes for a product on Akeneo the corresponding product option will not change in Sylius.

For example, let's say there is a Product A on Akeneo belonging to Product Model B. Product A has, as a variability attribute, the attribute "color" with the value RED. So, in Sylius Product B with product configuration option "color" will be created and variant A will be created with option value RED. Suppose you change the family variant on Akeneo for product A and the new variant attribute becomes for example size with the value "LARGE" and you delete the value of the color attribute. In that case, you will get an error while importing the product on Sylius on ProductOptionValueHandler::108 because for product A the option is still color that is now empty!