vinsol-spree-contrib / spree_marketing

Spree extension that allow a lot of reports synced with Mailchimp to help you in creating different subscribers list on Mailchimp. This extension provides reports like "Most Selling Products", "Abandoned Carts", "Most searched keywords", etc. to give better insights.
BSD 3-Clause "New" or "Revised" License
7 stars 18 forks source link

Spree Marketing

Introduction

Marketing is one of the most important aspect of any Ecommerce business.

This extension gives you a lot of lists synced with Mailchimp to help you in creating different subscribers list on Mailchimp.

This extension provides user lists for "Most Selling Products", "Abandoned Carts", "Most searched keywords", etc. to give better insights.

Demo

Try Spree Marketing for Spree master with direct deployment on Heroku:

Deploy

Try Spree Marketing for Spree 3-6 with direct deployment on Heroku:

Deploy

Installation

  1. Add this extension to your Gemfile with this line:

    Spree >= 3.2

    gem 'spree_marketing', github: 'vinsol-spree-contrib/spree_marketing'
    gem 'spree_events_tracker', github: 'vinsol-spree-contrib/spree_events_tracker'

    Spree 3.0 and Spree 3.1

    gem 'spree_marketing', github: 'vinsol-spree-contrib/spree_marketing', branch: 'X-X-stable'
    gem 'spree_events_tracker', github: 'vinsol-spree-contrib/spree_events_tracker', branch: 'X-X-stable'

    The branch option is important: it must match the version of Spree you're using. For example, use 3-0-stable if you're using Spree 3-0-stable or any 3.0.x version.

  2. Install the gem using bundler.

    bundle install
  3. Copy & run migrations using installer.

    bundle exec rails g spree_marketing:install

    This installer will also run installer for spree_events_tracker.

  4. After installer runs, it will create a config/spree_marketing.yml.example which is to be converted into config/spree_marketing.yml with correct user credentials. Also run command

    wheneverize

    so that cron tasks can be scheduled.

  5. Restart your server if your server was running so that it can now find assets properly.

Here is an article with screenshots Testing

First bundle your dependencies, then run rake test_app. rake test_app will generate to dummy app if it does not exist. And then run specs using rspec spec/

 bundle
 bundle exec rake test_app
 rspec spec/

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_marketing/factories'

Credits

vinsol.com: Ruby on Rails, iOS and Android developers

Copyright (c) 2016 vinsol.com, released under the New MIT License