Sha256: a93163da3329eb0207e4d7499cef521e24bf68053e7bfbb61f1a52466660018b
Contents?: true
Size: 1.74 KB
Versions: 2
Compression:
Stored size: 1.74 KB
Contents
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. 2. 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: ```ruby gem 'spree_custom_notifications' ``` Bundle your dependencies and run the installation generator: ```shell 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](screen-shots/custom_notification_screen_admin.png) On store, the Notifications are displayed as following: ![store-custom-notification](screen-shots/custom_notification_screen_store.png) 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` ```css #notification_div{ background-color: gray; } ``` Then, require custom.css in your `app/assets/stylesheets/store/all.css`. ```css /* *= require store/spree_frontend *= require store/spree_custom_notifications *= require_self *= require_tree . */ ``` Refer - [http://guides.spreecommerce.com/developer/asset.html](http://guides.spreecommerce.com/developer/asset.html) Copyright (c) 2014 [Cuberoot Software](http://www.cuberoot.in), released under the New BSD License
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_custom_notifications-0.5 | README.md |
spree_custom_notifications-0.4 | README.md |