No commit activity in last 3 years
No release in over 3 years
Reworked the contact_us gem to add a basic contact us form to Spree.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

SolidusContactUs

Build Status

This extension provides a basic contact form for Solidus.

Installation

Add solidus_contact_us to your Gemfile:

gem 'solidus_contact_us', github: 'jtapia/solidus_contact_us'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g solidus_contact_us:install

If you want to change the configuration, you can add the following to an initializer:

SolidusContactUs::Config.tap do |config|
  config.mailer_from = 'store@example.com' # String, *optional, default: ''
  config.require_name = true # Boolean, default: false
  config.require_subject = true # Boolean, default: false
  config.contact_tracking_message = '' # String, default: nil
  config.link_on_header = false # Boolean, default: true
  config.link_on_footer = false # Boolean, default: true
end

Preview

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, 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_contact_us/factories'

Copyright (c) 2019 [name of extension creator], released under the New BSD License