No commit activity in last 3 years
No release in over 3 years
Display Custom notifications on Spree Store
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Spree Custom Notifications

This gem is used to display custom notifications on Spree Store's Home page.

  1. Spree Admin -

Notification link is added in Configuration Menu.

Admin is able to CRUD on Notification.

  1. Spree Store -

If the notifications are disclosed by user, they are not displayed again during same session.

The Notification is displayed during its start date and end date added by admin while creating it.

Installation

Add spree_custom_notifications to your Gemfile:

gem 'spree_custom_notifications'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_custom_notifications:install

Example

Please refer following screenshot to create custom notifications.

Admin can add sample notification.

admin-custom-notification

On store, the Notifications are displayed as following:

store-custom-notification

Customization

You can customize the styling of notification by using spree assets customization logic.

Example: If you want to change background-color of notifications:

Add in app/assets/stylesheets/store/custom.css

#notification_div{
  background-color: gray;
}

Then, require custom.css in your app/assets/stylesheets/store/all.css.

/*
 *= require store/spree_frontend

 *= require store/spree_custom_notifications
 *= require_self
 *= require_tree .
*/

Refer - http://guides.spreecommerce.com/developer/asset.html

Copyright (c) 2014 Cuberoot Software, released under the New BSD License