ginlane / spree_importer

BSD 3-Clause "New" or "Revised" License
1 stars 9 forks source link

Imports 1st row only - Rails 4 - Spree 2.1 #23

Open Allanon29 opened 10 years ago

Allanon29 commented 10 years ago

Hi,

I tested Your gem with Rails 4 and Spree 2.1 stable. At first I would like to say that it was a brilliant idea to use Google Spreadsheets. I set up a small, 10 row file with the following columns: name price description

I tried to import it from both google and from csv, but it imports the first row only.

The only error message I get is this: ActionController::RoutingError (No route matches [GET] "/admin/assets/spritemap.png")

Any idea why this happens?

weeksie commented 10 years ago

Interesting. One good way to go is to do a product export with an empty database. That will give you all of the columns that are required for an import. You're going to want to have a sku column (or a sku pattern column for import.

ArjanL commented 10 years ago

Try using one of these csv files in the "/spec/fixtures/files" folder.