Skip to content

Latest commit

 

History

History
71 lines (49 loc) · 2.19 KB

README.md

File metadata and controls

71 lines (49 loc) · 2.19 KB

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.

Installation

  1. Add this extension to your Gemfile by this line.
 gem 'spree_marketing', github: 'vinsol-spree-contrib/spree_marketing'
Specify branch corresponding to the spree version you are using like `3-0-stable` for spree `3.0.x`
Also this gem has dependency on spree_events_tracker. So make sure spree_events_tracker gem is added in your `Gemfile` like
 gem 'spree_events_tracker', github: 'vinsol-spree-contrib/spree_events_tracker'
  1. Install the gem using bundler.
 bundle install
  1. Copy & run migrations using installer.
 bundle exec rails g spree_marketing:install

This installer will also run installer for spree_events_tracker.

  1. 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.

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

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