From 3c7a6b16d930a6104c8d31bfebc2e6eb1707d523 Mon Sep 17 00:00:00 2001 From: cesartalves Date: Wed, 7 Apr 2021 13:11:11 -0300 Subject: [PATCH] Add sample CSV files under examples/csvs All supported attributes for each type are included. --- CHANGELOG.md | 3 ++- README.md | 7 ++++++- examples/csvs/customer.csv | 2 ++ examples/csvs/orders.csv | 3 +++ examples/csvs/products.csv | 4 ++++ 5 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 examples/csvs/customer.csv create mode 100644 examples/csvs/orders.csv create mode 100644 examples/csvs/products.csv diff --git a/CHANGELOG.md b/CHANGELOG.md index 862085e7..9bbcb216 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## [v0.2.0](https://github.com/solidusio-contrib/solidus_importer/tree/v0.2.0) (2021-04-02) +## [v0.2.0](https://github.com/solidusio-contrib/solidus_importer/tree/v0.2.0) (2021-04-07) [Full Changelog](https://github.com/solidusio-contrib/solidus_importer/compare/v0.2.0...v0.2.0) @@ -12,6 +12,7 @@ **Merged pull requests:** - Let the extension work with ActiveStorage [\#57](https://github.com/solidusio-contrib/solidus_importer/pull/57) ([MinasMazar](https://github.com/MinasMazar)) +- Update gemspec with correct Github organization [\#52](https://github.com/solidusio-contrib/solidus_importer/pull/52) ([MinasMazar](https://github.com/MinasMazar)) - Fix option types and values processors [\#47](https://github.com/solidusio-contrib/solidus_importer/pull/47) ([stefano-sarioli](https://github.com/stefano-sarioli)) - Update to the latest dev-support template and allow usage of Solidus 3.0 [\#46](https://github.com/solidusio-contrib/solidus_importer/pull/46) ([MinasMazar](https://github.com/MinasMazar)) - Skip empty option values [\#45](https://github.com/solidusio-contrib/solidus_importer/pull/45) ([derrickp](https://github.com/derrickp)) diff --git a/README.md b/README.md index d0b30722..55690a03 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,12 @@ There are three supported CSV types: 1. [Product](https://help.shopify.com/en/manual/migrating-to-shopify/transporter-app/csv-products) 2. [Order](https://help.shopify.com/en/manual/migrating-to-shopify/transporter-app/csv-orders) -3. [Customer](https://help.shopify.com/en/manual/migrating-to-shopify/transporter-app/csv-customers) +3. [Customer](https://help.shopify.com/en/manual/migrating-to-shopifsy/transporter-app/csv-customers) + + +--- + +Alternatively, we accept CSV files that conform to the ones shown in the [examples/csvs](https://github.com/solidusio-contrib/solidus_importer/tree/master/examples) folder ### The Processors diff --git a/examples/csvs/customer.csv b/examples/csvs/customer.csv new file mode 100644 index 00000000..0cf6bb89 --- /dev/null +++ b/examples/csvs/customer.csv @@ -0,0 +1,2 @@ +Email,First Name,Last Name,Address1,Address2,City,Zip,Phone,Country Code,Province Code +dorem@gmail.com,Lorem,Ipsum,Lorem ipsum,apt 3,New York,1111,98989898,US,NY \ No newline at end of file diff --git a/examples/csvs/orders.csv b/examples/csvs/orders.csv new file mode 100644 index 00000000..723772e6 --- /dev/null +++ b/examples/csvs/orders.csv @@ -0,0 +1,3 @@ +Name,Processed At,Currency,Email,Note,Billing First Name,Billing Last Name,Billing Address1,Billing Address2,Billing City,Billing Company,Billing Zip,Billing Phone,Billing Country Code,Billing Province Code,Shipping First Name,Shipping Last Name,Shipping Address1,Shipping Address2,Shipping City,Shipping Company,Shipping Zip,Shipping Phone,Shipping Country Code,Shipping Province Code,Lineitem sku,Lineitem quantity,Lineitem price,Shipping Line Title,Lineitem fulfillment status,Shipping Line Price,Financial Status +SampleOrder-123431,2021-04-07 14:45:27 -0300,USD,lorem@gmail.com,An order note,Sample name,Sample Last name,3380 Straford Park,apt 3,Maysville,Solidus Contrib,41056,606-564-1950,US,KY,Sample name,Sample Last name,3380 Straford Park,apt 3,Maysville,Solidus Contrib,41056,606-564-1950,US,KY,my-sample-product-2,1,15,Solidus-Express,fulfilled,2,paid +SampleOrder-123431,2021-04-07 14:45:27 -0300,USD,lorem@gmail.com,An order note,Sample name,Sample Last name,3380 Straford Park,apt 3,Maysville,Solidus Contrib,41056,606-564-1950,US,KY,Sample name,Sample Last name,3380 Straford Park,apt 3,Maysville,Solidus Contrib,41056,606-564-1950,US,KY,my-sample-product-1,2,13,Solidus-Express,fulfilled,2,paid \ No newline at end of file diff --git a/examples/csvs/products.csv b/examples/csvs/products.csv new file mode 100644 index 00000000..9d4916f0 --- /dev/null +++ b/examples/csvs/products.csv @@ -0,0 +1,4 @@ +Handle,Title,Published,Variant SKU,Variant Weight,Variant Price,Option1 Value,Option1 Name,Option2 Name,Option3 Name,Option2 Value,Option3 Value,Image Src,Alt Text,Variant Image +my-sample-product,Sample Product,true,,,,Default Title,,,,,,https://github.com/solidusio/solidus/raw/master/sample/db/samples/images/ruby_hoodie.jpg,Cool Image, +my-sample-product,,true,my-sample-product-1,10,5,Black,color,weight,size,50,m,,,https://github.com/solidusio/solidus/raw/master/sample/db/samples/images/solidus_tshirt_back_black.png +my-sample-product,,true,my-sample-product-2,10,5,Blue,color,weight,size,50,m,,,https://github.com/solidusio/solidus/raw/master/sample/db/samples/images/solidus_tshirt_back_blue.png \ No newline at end of file