magento-hackathon/ImportProfiles

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Import Profiles

Overview

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.

Concept

| 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 |

Input

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

Structured

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.

Output

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.

Install

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
Usage

Contributers

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.