danslo / ApiImport

Boilerplate between the Magento API and ImportExport, so that you can do fast Array/XMLRPC/SOAP based product imports.
244 stars 79 forks source link

Add CSV example #44

Closed barryvdh closed 8 years ago

barryvdh commented 8 years ago

As you write:

The glaringly obvious one: being able to do imports programmatically rather than manually uploading a CSV file.

It's might be easy to provide an actual example :)

(Also fixed the Exception, only that type supports the CustomMessage) Also fixes #32

danslo commented 8 years ago

Thanks! :+1:

Nolaan commented 8 years ago

Still no example CSV???

barryvdh commented 8 years ago

Just export a CSV from the admin panel with some actual product data.

Nolaan commented 8 years ago

I did it. For my use case I need to import products. I omitted several fields in the header, the result I obtain is "import_failed: Invalid entity model". Does it means that all 54 fields must be used?

barryvdh commented 8 years ago

Did you set a EntityModel? If so, are you sure it's correct?

Nolaan commented 8 years ago

Actually I don't know neither the exported then reimported csv nor the provided csv here https://www.mag-manager.com/useful-articles/tipstricks/required-csv-file-values-for-error-free-magento-import-via-admin/ works. I'll just give up on that I guess.