Spree extension for Mad Mimi

Mad Mimi's Spree extension allows you to easily import your product listings and buyer email addresses for a super efficient email integration.


Update your Gemfile

Add spree_madmimi to your Gemfile:

gem 'spree_madmimi', github: 'godaddy/spree_madmimi'
gem 'omniauth-madmimi', github: 'madmimi/omniauth-madmimi'


Bundle your dependencies and run the installation generator:

bundle exec rails g spree_madmimi:install

Obtain Mad Mimi credentials

Get your Application ID and Secret from Mad Mimi:

  1. Visit Mad Mimi applications.
  2. Click "New Application" button.
  3. For name use any string (e.g. Spree Store).
  4. For redirect uri use your domain plus /auth/madmimi/callback (e.g. http://example.com/auth/madmimi/callback).

Configure Mad Mimi

Add madmimi configuration to config/application.rb file:

config.madmimi = {
  client_id:     '...your MadMimi Application ID...',
  client_secret: '...your MadMimi Secret...'

Don't forget to replace Application ID and Secret with your Mad Mimi credentials.


Go to the admin section of your Spree store and visit: Configurations → Mad Mimi.

There you can connect your existing Mad Mimi account or create a new one.

Once you've set up your connection, you can choose one of your Mad Mimi webforms to use as the subscribe form for your store.


You can use your Mad Mimi integration in various ways:

To import your existing customers into Mad Mimi, sign in into your account, visit Spree addon's page and click "Import" button. You will receive a notification once it is ready.

When you link your Spree store, the newsletter composer will have a new "Products" tab containing your active listings. From there you can drag and drop a listing into either a text or image field to automatically add the description or photo.

Create sign up forms to allow people to subscribe to your audience lists. Integrate them into Spree store by choosing webform in the Mad Mimi configuration section of your store.

If you need to embed webform into your store's design, use mad_mimi_webform helper with webform id as the first argument and :plain as the second, e.g.:

<%= mad_mimi_webform(123, :plain) %>


First bundle your dependencies, then run rake. rake will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app.

bundle exec rake

When testing your applications integration with this extension you may use it's factories.
Simply add this require statement to your spec_helper:

require 'spree_madmimi/factories'

Copyright (c) 2014 Mad Mimi, released under the New BSD License


No comments yet

Please login to add comment.