Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Mail Chimp integration for your Spree store
Ruby JavaScript
Branch: 0-11-stable

This branch is even with sbeam:0-11-stable

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db/migrate
lib
public/javascripts
test
.gitignore
LICENSE
README.textile
Rakefile
mail_chimp_extension.rb
mail_chimp_hooks.rb

README.textile

Spree + Mail Chimp

MailChimp API integration for your Spree store, using the hominid gem.

Adds a checkbox to the user signup form to allow customer to opt-in to your Mailchimp mailing list. Mailchimp API calls happen via the hominid gem.

Mailchimp subscription status is tracked with a boolean flag on the users table, we also fetch and store the unique MC record id when the subscription is created. This allows us to modify existing email addresses with minimal fuss.

This is a very simple extension as of now, any ideas suggestions or improvements welcome!

Subscription form partial with JS

Also includes a partial at shared/newsletter_subscribe_form that can be included in your footer or sidebar anywhere on the site, has one field for the email address. jQuery code in public/javascripts/mailchimp_subscribe.js will POST to the SubscriptionsController which will relay to Mailchimp.

The SimpleModal plugin is used in the EJB to pop up a confirmation or error alert (because you won’t be satisfied with a simple alert() box)

Installation ###


./script/extension install git://github.com/sbeam/spree-mail-chimp.git

rake db:migrate
 

Configuration ###

Look at config/initializers/mail_chimp_settings.rb – copy this to your site extension and add your own MailChimp API key and list ids.

Changes ###

Version 1.0 – released 8 Nov 2010

Requirements ###

Spree =~ 0.11.99 (not 0.30, yet)
hominid >= 2.2.0 http://rubygems.org/gems/hominid

Also uses the jQuery SimpleModal plugin, included.

Credits ###

Authored by Sam Beam sbeam@onsetcorps.net

Inspired originally by Mailee Spree https://github.com/softa/mailee_spree

includes SimpleModal http://www.ericmmartin.com/projects/simplemodal/

TODO ###

  • Make Rails 3/Spree 0.30 compat
  • Export new orders to Mailchimp for full CRM gnarliness
  • Utility to export existing users to Mailchimp
  • Add admin controller to view lists and subscriptions
  • Allow for multiple lists
  • Make modal dialog play nicer with other css/layout requirements
  • Tests :/
Something went wrong with that request. Please try again.