Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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