Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Spree extension for adding a Pinterest "Pin it" button for your products

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 lib
Octocat-spinner-32 script
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec
Octocat-spinner-32 CHANGELOG.md
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Guardfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 Versionfile
Octocat-spinner-32 spree_pinterest.gemspec
README.md

Spree Pinterest

Simple Spree extension for adding a Pinterest Pin it button for your product images. It will add the button below each image on the products#index page and on the products#show page.

It has some default styling that works with the default Spree theme, but you can easily override this styling to fit your needs.

Button parameters

There are three parameters that the button uses to create the pin: url, media, and description. The values used for each of these are as follows:

  • url - The URL of the page that the pin button is located on
  • media - The URL for the image that is being pinned
  • description - The product name

When you click the "Pin it" button, a Pinterest-provided window is opened for you to confirm the pin. Here you will have the opportunity to choose your pin board, as well as modify the description if you don't want to use the default.

Testing this engine

Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.

$ bundle
$ bundle exec rake test app
$ bundle exec rspec spec

Copyright (c) 2012 Genuity Technology Services, released under the New BSD License

Something went wrong with that request. Please try again.