Add neighbors products to a product that have geographic coordinate
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db/migrate
lib
readme_images
script
spec
.gitignore
.rspec
Gemfile
LICENSE
README.md
Rakefile
SPREE_TRAVEL_VERSIONS
Versionfile
spree_neighbors.gemspec

README.md

Spree Neighbors

Spree Neighbors, is an extension of spree e-commerce platform. It depends of Spree Location project, and it provides spree's products with another way of relating them, the "near" product relation.

###Important Note The Spree Neighbors project is a work in progress, and will suffer major changes. Please use it and keep a live feedback with the team by opening a GitHub issue.

Requirements

Rails and Spree

Spree Neighbors now requires Rails version >= 4.0 and a Spree version >=2.1.

Spree Location

Spree Neighbors now requires a Spree Location version >=2.1.

Installation

Spree Neighbors is not yet distributed as a gem, so it should be used in your app with a git reference or you can download the source and build the gem on your own.

  1. Add the following to your Gemfile
  gem 'spree_neighbors’, :git => 'https://github.com/openjaf/spree_neighbors.git', :branch => 'master'
  1. Run bundle install

  2. To copy and apply migrations run:

rails g spree_neighbors:install

Features

  • Adds a new property to products, the neighbors, or near products.
  • Adds a way to relate products by the distance between them.
  • Allows to control wich items will be marked as close to each other, a way to control haow many will be shown and a way to sort them.
  • Shows a map with the location of the related products, and a list beneath with links to those related.

How to use it

After installing the extensions go to admin/products and from the products list, select one of the products and a link will appear on the bar on the right side of the view with the text NEIGHBORS.

Edit Neighbors Selection

All the configurations to show product neighbors are shown in this view:

  1. How many neighbors will be shown
  2. How far will be considered a neighbor
  3. On wich criteria, the neighbors will be ordered.
  4. If a neighbor will be considered if it haves certain property.
  5. Add neighbors manually to the list.

The map resulting of this configuration will be showed on the product details view, centered between all the neighbors:

map view

Contributing

If you'd like to contribute a feature or bugfix: Thanks! To make sure your fix/feature has a high chance of being included, please read the following guidelines:

  1. Post a pull request.
  2. Or open a GitHub issue.

License

Copyright © 2013 OpenJAF, released under the New BSD License.