webgriffe/SyliusAkeneoPlugin

Handle the Akeneo product status (enabled/disabled)

Closed this issue · 1 comments

Currently this plugin completely ignores the Akeneo product status (enabled/disabled).

Of course, this status should be mapped with the analog Sylius's product status. The problem is that in Sylius the product status is at product level and not (also) at product variant level; instead in Akeneo the status is only at product level and not at product model level.

So, in Akeneo, you could have only one disabled product variant for a parent product which have several other variants enabled. This situation couldn't be mapped currently on Sylius.

For now I added a simple status resolver to the product importer which always resolves to enabled status except when the Akeneo product is disabled and does not belong to a parent product model.

I'll open another RFC issue to discuss about possible improvements of status handling.