Coder Social home page Coder Social logo

welitonfreitas / solidus_product_zoom Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spree-contrib/spree_product_zoom

0.0 2.0 0.0 98 KB

Lightbox zoom functionality to show original product image

Home Page: https://spreecommerce.com/

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

Ruby 53.36% JavaScript 0.71% HTML 44.85% CSS 1.08%

solidus_product_zoom's Introduction

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

License

This project has been released under the New BSD License, Copyright (c) 2012 John Dyer. Please keep in mind that fancyBox has to be licensed in particular if you want to use this gem in a commercial way. See for more details: http://www.fancyapps.com/fancybox/#license

solidus_product_zoom's People

Watchers

 avatar  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.