🎟 Allow each user to use a promotion a maximum of N times
MIT License
Adding this rule to a promo will allow you to set a limit on the number of completed orders for which a given user can apply it (default 1 use).
gem 'spree_promo_user_usage_limit'
bundle
Add this rule to a promo and set the number of uses you want to allow
Profit.
Versions files the pattern MAJOR.MINOR.PATCH SemVer-style. MAJOR.MINOR version will always match the Spree version that gem is compatible with. PATCH version is incremented as new bugfix releases of this gem come out, indepently of new Spree PATCH versions.
For example, version 2.1.0 is compatible with the Spree 2.1.x series, while version 2.0.0 is compatible with the Spree 2.0.x series.
You should not need to worry about this, as the gemspec has the appropriate constraints. But hey, the more you know.
This extension is tested against the following rubies:
Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.
bundle
bundle exec rake test_app
bundle exec rspec
Copyright (c) 2014 Stefan Wrobel, released under the MIT License