https://github.com/andrew/spree_order_export

A quick and dirty Spree extension to export order information to a CSV file

https://github.com/andrew/spree_order_export

Science Score: 10.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 6 committers (16.7%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.3%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

A quick and dirty Spree extension to export order information to a CSV file

Basic Info
  • Host: GitHub
  • Owner: andrew
  • License: bsd-3-clause
  • Language: Ruby
  • Default Branch: master
  • Homepage: www.3months.com
  • Size: 116 KB
Statistics
  • Stars: 0
  • Watchers: 2
  • Forks: 5
  • Open Issues: 0
  • Releases: 0
Fork of assembled/spree_order_export
Created over 13 years ago · Last pushed over 13 years ago
Metadata Files
Readme License

README.md

Order Export

Order export is a quick and dirty extension I wrote as an implementation for a client - basically, it exports line items to a CSV file.

I chose not to use spree-advanced-reporting after taking a look at how complex it was and running into a couple of problems getting it going. Plus, I was going to have to write a template to export the right data anyway.

You can install it simply by adding it to the Gemfile of your Spree project: gem 'order_export', :git => 'git://github.com:3months/spree-order-export.git' And then running bundle install

The extension adds a report under the 'Reports' tab which allows the export to be constrained to a date range, and exports a CSV file which should be in a blend of line breaks and seperaters which should work with Microsoft Office Excel.

It exports the following fields, in the following order: * Order number * Customer Full Name * Customer Address (Address 1, Address 2 if there, Country) * Customer Phone * Customer Email * Variant (Product) name * Variant (Product) quantity * Order total * Order payment method.

I played around with dynamically adding (fastercsv)[http://fastercsv.rubyforge.org/] as a dependency in the Gemfile, but didn't have any luck - therefore, if you are running Ruby 1.8.7 you need to add fastercsv to your Gemfile, otherwise you will run into an exception from my controller when I require 'fastercsv'. If you are using Ruby 1.9.2 you'll be OK as FasterCSV is the new default CSV library in this version, but I have had to call methods on the FasterCSV module instead of CSV to be backwards compatible with 1.8.7

I simply implemented this feature as a Spree extension to help out someone else needing this sort of basic funcionality as part of work on a project, rather than specifically aiming to build it as a complete extension - therefore, I can vouch that it works for me, and should work for you, but if you need to change anything about which fields are exported or how the extension works there is no sort of configuration - fork the extension, and implement whatever you need to on your copy.

Enjoy :-)

Josh

Copyright (c) 2011 Josh McArthur, released under the MIT License

Owner

  • Name: Andrew Nesbitt
  • Login: andrew
  • Kind: user
  • Location: Bristol, UK
  • Company: @ecosyste-ms and @octobox

Working on mapping the world of open source software @ecosyste-ms and empowering developers with @octobox

GitHub Events

Total
Last Year

Committers

Last synced: 10 months ago

All Time
  • Total Commits: 27
  • Total Committers: 6
  • Avg Commits per committer: 4.5
  • Development Distribution Score (DDS): 0.556
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Josh McArthur j****r@g****m 12
Chris Lusted k****0@h****m 5
Ag g****b@a****m 4
Rob Kaufman r****b@n****m 3
Andrew Nesbitt a****z@g****m 2
tka t****a@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels