Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Lightbox zoom functionality to show original product image
branch: 1-3-stable

This branch is even with spree-contrib:1-3-stable

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
lib
script
spec
vendor/assets
.gitignore
.rspec
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
Versionfile
spree_product_zoom.gemspec

README.md

SpreeProductZoom

A Spree extension that adds lightbox zoom functionality for product images. The lightbox is powered by fancyBox.

Installation

Add this extension to your Gemfile:

gem "spree_product_zoom", :git => "git://github.com/spree/spree_product_zoom.git"

Then run:

bundle install

Run:

bundle exec rails g spree_product_zoom:install

in order to copy over the required css and js files.

Once installation is complete your product images can be zoomed by clicking on the "Zoom In" button beneath an image.

Configuration

spree_product_zoom has only one configuration option, the paperclip image style to use when zooming in on an image. It defaults to :original.

To change the default style from :original create a file config/initializers/spree_product_zoom.rb with the following content:

Spree::ProductZoom::Config[:default_image_style] = :your_image_style

Copyright (c) 2012 John Dyer, released under the New BSD License

Something went wrong with that request. Please try again.