Adding a new Magento export job can be done trough the export profile management page. Three (five with reference entities and reference data) new export types were added.
Magento export
Magento image export
Magento queue export
Magento reference entity export (must be activated - EE only. See topic “references”)
Magento reference data export (must be programmed first. See topic “references”)
When configuring an export of this type, we see that we have four tabs:
Properties
Magento API settings
Magento API default settings for this job type
Content
Default Akeneo. Will not be discussed here. The only important note is that the locales configured under the storemapping must be active here as well.
History
Default Akeneo. Will not be discussed here.
Working
The Magento connector was written in a way that all necessary entities will be exported in ONE export flow. Except for the images. This means that only one job needs to be configured for exporting categories, attributes, attribute groups, attribute options, families, products, product models, … To ensure that all data is present before creating products we need to maintain a specific export order. Five export steps were created:
category export - for creating the category tree if enabled
attribute export - will create the attributes that are configured in the general UI. See the user configuration documentation for more information.
family export - creation of attribute sets in Magento. This step will create the attribute sets, the attribute groups and will link the attributes as well.
Attribute option update export - will push option UPDATES by the Induxx events bundle. Be aware that creating options is done in the product export step.
Reference option update export - EE only. This will push reference option UPDATES by the Induxx events bundle. Be aware that creating options is done in the product export step.
product export - will export (configurable) products and the attribute options based on the product values. This means that only the necessary attribute options are created and linked to the products.
Once the export is finished without any fatal errors, a new job status will be given. The status code 50, which stands for ‘WAITING FOR EXTERNAL QUEUE’. This means that all data was successfully pushed to the queue of Magento. Magento will now start importing this queue. Depending on the size of this export, and the amount of storeviews it can take a while to see your product changes.
The status of this export job will change from ‘WAITING FOR EXTERNAL QUEUE’ to ‘COMPLETE’ once Magento is finished importing and the Magento queue job has run. See the documentation page ‘Magento queue handling’ for more information.
Info
The status ‘WAITING FOR EXTERNAL QUEUE’ will be only used in versions lower than 6.0. For version >= 6 the status complete is given directly.
Properties
Same as the Magento export.
Magento API settings
Magento API default settings for this job type
Content
Same as the Magento export.
History
Same as the Magento export.
Working
In this export job we only export the product export step. We filter product values on image data. This job also gets the ‘WAITING FOR EXTERNAL QUEUE’ status when finished. See above for more information.
Properties
Same as the Magento export.
Magento API settings
History
Same as the Magento export.
Working
Because the Magento queue job is a little more complicated we created an own topic for this. See the “Follow up queue” topic.
A list of the Magento storeviews code according to json format. A separate API bulk export call will run for each store view. When configuring the store mapping a specific format is expected. An example of this json format.
{
"all":{
"locale":"en_GB",
"currency":"EUR"
},
"code_fr_storeview":{
"currency":"EUR",
"locale":"fr_FR",
"id":"1"
},
"code_nl_storeview":{
"currency":"EUR",
"id":"3",
"locale":"nl_BE"
}
}
The ALL (default Magento) storeview code is Magento’s default store. The locales given are the Akeneo locales. In this example the en_GB locale values of Akeneo will be send to Magento default store. Also the EURO price currency values will be used. For the other storeviews (inheriting from the all default) we use Magento’s storeview code. We also add Magento’s internal store id to the list.