Name: ImportProfiles
Owner: FireGento e. V. - Hackathons
Description: null
Created: 2016-05-14 08:50:53.0
Updated: 2016-05-20 11:46:40.0
Pushed: 2016-05-14 14:28:40.0
Homepage: null
Size: 9
Language: PHP
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A layer to translate data from (any) source to Magento. We created the idee to first translate data to a general format(array), then do the translations, the output it to for example Magento or CSV. This way it's possible to re-use it for multiple sources.
We had a cool discusion about where to do the mapping and howto make it flexible, we came up with a pretty solution which is more flexible to import/export data from several sources.
| Step | Implements | | —- | ———- | | InputData | From source CSV/SOAP/curl|Own Implementation | | | Read data to array/xml2array/csv2array | | StructuredData | Array rows | | | Process data, do mappings | | OutputData | To destination: Magento/CSV/SOAP/REST/Own Implementation/Magento |
You read feeds from whatever your source is with the possibility to add your own. For example process the Magento std csv.
The input should process the data to a array containing rows with field -> value
With the structured data you can hook the translators to do mappings, change fields, update values. There can be multiple hooks, in the Magento admin there can be a interface for doing the mappings in multiple steps.
The structured data is then translated so you'll have data which you can import into Magento directly. Or even export it to another destination.
Add the following section to your composer.json:
ositories": [
{
"type": "vcs",
"url": "git@github.com:magento-hackathon/ImportProfiles.git"
}
Now you need to require the module
oser require magento-hackathon/ImportProfiles dev-master
Installation in Magento is done by:
magento setup:upgrade
…