SyliusImportExportPlugin icon indicating copy to clipboard operation
SyliusImportExportPlugin copied to clipboard

add CSV and Excel importer for customers

Open enesaktay opened this issue 7 years ago • 10 comments

enesaktay avatar Jul 19 '18 12:07 enesaktay

I think we can add it by ourself following the Development documentation ??

stevangoldduck avatar Nov 14 '18 10:11 stevangoldduck

image Available importers show that in my app may upload with Excel, but always show Skip 1. image and here is my Excel image any clue of this??

stevangoldduck avatar Nov 15 '18 10:11 stevangoldduck

@stevangoldduck Just guessing after having looked at the code, but maybe the empty values in Birthday could be a problem. The skipped value is only set in the ResourceImporter, if ha row is incomplete. My next guess would be that the FALSE in Subscribed_to_newsletter could be a problem.

Have you tried it with a csv-file yet, maybe it is a xlxs-related problem?

mattagohni avatar Nov 15 '18 14:11 mattagohni

Okkay i'll try with the CSV

stevangoldduck avatar Nov 16 '18 03:11 stevangoldduck

It still doesn't work in csv and excel,, any clue of this??

stevangoldduck avatar Nov 16 '18 08:11 stevangoldduck

I just wanna close this.

  1. Follow the Development guide for Importer
  2. Just make sure your file as same as like this picture below for Excel image Match the column with your HeaderKey in Generic ResourceProcessor
  3. For CSV file format, you can check the examples in the tests/Behat/Resources/fixtures

stevangoldduck avatar Nov 16 '18 10:11 stevangoldduck

@enesaktay

stevangoldduck avatar Nov 16 '18 10:11 stevangoldduck

Did you try and remove the first row and move everything else up so the table starts at 1-A?

enesaktay avatar Nov 17 '18 09:11 enesaktay

Yeah i've tried it and still skipped. With the example above, the data can be imported.

stevangoldduck avatar Nov 20 '18 15:11 stevangoldduck

I don't know why it's happening, we can't exactly put the data from A-1 row.

stevangoldduck avatar Nov 20 '18 15:11 stevangoldduck