Spree Zaez Komerci

This gem implements some funcionalities of Komerci (a product of Rede) to Spree Commerce.

Installation

Add spree_zaez_komerci to your Gemfile:

gem 'spree_zaez_komerci'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_zaez_komerci:install

Settings

To configure the Komerci settings, go to /admin/komerci_settings/edit (or access by the menu in configurations > Komerci Settings). To set the settings through a config file, you can assign values to the settings like so:

Spree::KomerciConfig[:afiliation_key] = '12345'

See all settings in /lib/spree/komerci_configuration.rb.

Testing

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

Copyright (c) 2016 Zaez Inovação Digital, released under the New BSD License