synolia / SyliusAkeneoPlugin

This Sylius plugin allows you to import data from Akeneo PIM
European Union Public License 1.2
23 stars 22 forks source link

[Feature] Variant attributes import ? #188

Open AXNW opened 5 months ago

AXNW commented 5 months ago

Is there a way to import the specific variant attributes described here in Sylius ? Example :

the variant attributes by color: pictures, composition the variant attributes by color/size: EAN, SKU

TheGrimmChester commented 3 months ago

Hello,

As there is no attribut for variant on Sylius, you can use our ProductVariantTranslationModelAkeneoAttributeProcessor to add simple data to your entity. Link to doc

It works by checking if the attribute name exists in your class and the property must be suffixed by AkeneoAttribute. ie:

[ORM\Column(name: 'sku', type: 'string')]

private string $skuAkeneoAttribute = '';

Importing variant attributes like Sylius is something we are looking into for the futur but there are a lot of work to be done.