Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryardley/spree_promotions_rule_match_shipping_country
spree promotions rule to match on shipping addresses country
https://github.com/ryardley/spree_promotions_rule_match_shipping_country
Last synced: 27 days ago
JSON representation
spree promotions rule to match on shipping addresses country
- Host: GitHub
- URL: https://github.com/ryardley/spree_promotions_rule_match_shipping_country
- Owner: ryardley
- License: bsd-3-clause
- Created: 2014-10-24T23:47:46.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-05-10T23:14:21.000Z (over 10 years ago)
- Last Synced: 2024-10-26T06:54:03.866Z (2 months ago)
- Size: 172 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SpreePromotionsRuleMatchShippingCountry
=======================================A simple promotion rule for spree to match the shipping address country on an order to a list of eligible countries. This rule can then be used with an PromotionAction such as Free shipping to provide Free shipping only to eligible countries.
**Please note the this is currently a work in progress and still has some backend UI bugs that need to be resolved.**
Installation
------------Add spree_promotions_rule_match_shipping_country to your Gemfile:
```ruby
gem 'spree_promotions_rule_match_shipping_country'
```Bundle your dependencies and run the installation generator:
```shell
bundle
bundle exec rails g spree_promotions_rule_match_shipping_country:install
```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. The dummy app can be regenerated by using `rake test_app`.
```shell
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:```ruby
require 'spree_promotions_rule_match_shipping_country/factories'
```Copyright (c) 2014 [name of extension creator], released under the New BSD License