Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/workarea-commerce/workarea-shipping-message
https://github.com/workarea-commerce/workarea-shipping-message
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/workarea-commerce/workarea-shipping-message
- Owner: workarea-commerce
- License: other
- Created: 2019-11-12T18:28:17.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-17T15:04:10.000Z (over 4 years ago)
- Last Synced: 2024-05-16T09:04:54.382Z (7 months ago)
- Language: Ruby
- Size: 50.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Workarea Shipping Message
================================================================================Discount messaging plugin for the Workarea platform.
Out of the box this plugin adds messaging to the cart to let a customer know how
close they are to receiving a free shipping discount.The plugin includes seed data that sets up a free shipping discount with message.
Configuration
--------------------------------------------------------------------------------No additional configuration is necessary to use this plugin with free shipping messaging.
Other discount types can be configured to allow messaging.
To configure another discount type for messaging you will need to1. Decorate the discount type and include Pricing::Discount::Message
2. Add a method called discount_message_valid? to the decorated discount type.
See workarea-shipping-message/app/models/workarea/pricing/discount/shipping.decorator
for an example.
3. Create a new discount that meets the criteria of your discount_message_valid?
method
4. Add a method to render your discount message along with any necessary logic to
the relevant view_model for where your message will be displayed.
5. Call the discount render method in the view where your message will be displayedIf you think your new discount message might be a useful addition to this plugin
please include a member of the plugin team on your pull request or open a PR against
this plugin.Workarea Platform Documentation
--------------------------------------------------------------------------------See [https://developer.workarea.com](https://developer.workarea.com) for Workarea platform documentation.
Copyright & Licensing
--------------------------------------------------------------------------------
Workarea Commerce Platform is released under the [Business Software License](https://github.com/workarea-commerce/workarea/blob/master/LICENSE)