GithubHelp home page GithubHelp logo

bricesanchez / spree_retailers Goto Github PK

View Code? Open in Web Editor NEW

This project forked from davidcrees/spree_retailers

1.0 1.0 0.0 286 KB

Spree Commerce extension to list your retail store locations.

Home Page: https://rubygems.org/gems/spree_retailers

License: BSD 3-Clause "New" or "Revised" License

Ruby 99.43% JavaScript 0.01% CSS 0.57%

spree_retailers's Introduction

Spree Retailers Build Status

This is a fork of the spree_retailers gem to make it work nicely with Spree version 2. I have also made the following changes:

  1. Changed the columns displayed in list view to name, city, state and type

  2. Bundled admin functionality using sub-menus under the retailers tab

  3. Added a find local stockist feature.


Spree Retailers is a Spree extension for listing your company's retail stores on your web site.


Installation

As usual, add 'spree_retailers' to your Gemfile and run bundle install:

# Spree 2.0.x
gem 'spree_retailers', :git => 'git://github.com/davidcrees/spree_retailers.git'

# Spree 1.1.x
gem 'spree_retailers', :git => 'git://github.com/citrus/spree_retailers.git'

# Spree 1.0.x
gem 'spree_retailers', '1.0.0.0'

# Spree 0.70.x
gem 'spree_retailers', '0.70.0.0'

# Spree 0.50.x, 0.60.x
gem 'spree_retailers', '0.50.0.0'

# Spree 0.40.x 
gem 'spree_retailers', '0.40.0.4'

# install from source
gem 'spree_retailers', :git => 'git://github.com/citrus/spree_retailers.git'

Next, copy the migration file to your project:

# Spree 0.40.x, 0.50.x and 0.60.x
rake spree_retailers:install

# 0.70.x and above
rails g spree_retailers:install

Now, migrate your database with:

rake db:migrate

CSV Import

To import retailers via a CSV:

rake spree_retailers:import FILE=international_distributors.csv TYPE=Distributors SKIP_VALIDATION=true

Where the CSV file contains headers with the following names:
name, address, city, state, country, zipcode, phone, email, url, logo. SKIP_VALIDATION is only really helpful when you importing data that is missing the address fields


Testing

If you'd like to run tests:

git clone git://github.com/citrus/spree_retailers.git
cd spree_retailers
bundle install
bundle exec dummier
bundle exec rake

Demo

If you'd like a demo of spree_retailers:

git clone git://github.com/citrus/spree_retailers.git
cd spree_retailers
cp test/dummy_hooks/after_migrate.rb.sample test/dummy_hooks/after_migrate.rb
bundle install
bundle exec dummier
cd test/dummy
rails s

Contributors

If you'd like to help out feel free to fork and send me pull requests!


To Do

  • Google map integration (we're already geocoding, so why not?)
  • Add (better) International Support

License

Copyright (c) 2011 - 2012 Spencer Steffen and Citrus, released under the New BSD License All rights reserved.

spree_retailers's People

Contributors

citrus avatar iloveitaly avatar bricesanchez avatar

Stargazers

Stembolt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.