SolidusCatalogMode
This extension allow the user to set products not for online sale.
In this way we could use Solidus to show only the catalog of our products,
without the online store functionality.
Installation
Add solidus_catalog_mode to your Gemfile:
gem 'solidus_catalog_mode'
Bundle your dependencies and run the installation generator:
bundle
bundle exec rails g solidus_catalog_mode:install
Usage
This gem adds a boolean field to the products and to the stores. In this way you could set a single product or the complete store to be in "catalog mode". Then in your store frontend you can use this information to disable the link to the cart, the price and the cart form in the product page.
Dependencies
If you want to be able to set the flag for the stores in the backend, it requires the solidus_multi_domain gem.
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_catalog_mode/factories'
Copyright (c) 2017 Antonio Facciolo, released under the New BSD License