============
Add solidus_crm to your Gemfile:
gem 'solidus_crm'
Bundle your dependencies and run the installation generator:
bundle
bundle exec rails g solidus_crm:install
The default values for crm_endpoint
, crm_request_headers
, crm_order_emitter_class
, crm_shipment_emitter_class
and are preferences which are by default are set to:
Preference | Default |
---|---|
crm_endpoint |
'' |
crm_request_headers |
{} |
crm_order_emitter_class |
SolidusCrm::Event::Order |
crm_shipment_emitter_class |
SolidusCrm::Event::Order |
deliver_mailers_class |
SolidusCrm::DeliverMailers |
To override these defaults set them in config/initializers/spree.rb
e.g.
Spree::CrmConfig[:endpoint] = 'https://www.my-super-crm.com'
Setting the endpoint is required.
SolidusCrm::DeliverMailers returns true.
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, and Rubocop static code analysis. 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 'solidus_crm/factories'
Copyright (c) 2016 Made Tech, released under the New BSD License