Code Monkey home page Code Monkey logo

solidus_social_products's Introduction

Spree Social Products

Build Status Code Climate

A Spree extension that allows you to add social network sharing buttons (e.g. the Facebook like button) to your product pages.

There is some default styling that works well with the default spree theme, but this can be overrided.

Screenshot


Installation

Add this extension to your Gemfile:

gem 'spree_social_products', github: 'spree-contrib/spree_social_products', branch: 'master'

Then run:

bundle install

If you would like to use the default styles you can run:

bundle exec rails g spree_social_products:install

in order to copy over the required css files.


Usage

Enabled social networks will show up on product detail pages. In order to disable/enable social networks, head to Admin -> Configuration -> Social Sharing Settings.

NOTE: To enable the Facebook like button, you must update the Spree::Social::Config.facebook_app_id setting with your Facebook application ID. You can update this setting by running the following in the rails console:

Spree::Social::Config.facebook_app_id = 'YOUR_FACEBOOK_APP_ID'

Additionally, you may further customize the looks of the Facebook like button with the settings shown below with their default values and other possible values in comments:

Spree::Social::Config.facebook_layout = 'standard'      # button_count, box_count
Spree::Social::Config.facebook_show_faces = false       # true
Spree::Social::Config.facebook_verb_to_display = 'like' # recommend
Spree::Social::Config.facebook_color_scheme = 'light'   # dark
Spree::Social::Config.facebook_send_button = false      # true

You may refer to https://developers.facebook.com/docs/reference/plugins/like/ to preview the looks of different settings.


Contributing

See corresponding guidelines


Copyright (c) 2010-2015 John Dyer and other contributors. released under the New BSD License

solidus_social_products's People

Contributors

aming avatar andreabeggiato avatar antoniojasr avatar braincomb avatar christoph-buente avatar clemens avatar futhr avatar gayathritulasi avatar jdutil avatar jhawthorn avatar josuedhg avatar kunalchaudhari avatar lbrapid avatar lucaferri avatar ospsuite avatar radar avatar tiagoamaro avatar welitonfreitas avatar

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.