traels / spree-promotion-roles-rule Goto Github PK
View Code? Open in Web Editor NEWCreate promotionrules depending on the role the user has
License: BSD 3-Clause "New" or "Revised" License
Create promotionrules depending on the role the user has
License: BSD 3-Clause "New" or "Revised" License
Hi,
I added this to the spree initializer file -
Rails.application.config.spree.promotions.rules << RolesPromotionRule
and get the following error -
uninitialized constant RolesPromotionRule (NameError)
from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/engine.rb:593:in block (2 levels) in <class:Engine>' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/engine.rb:592:in
each'
from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/engine.rb:592:in block in <class:Engine>' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:30:in
instance_exec'
from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:30:in run' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:55:in
block in run_initializers'
from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:54:in each' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/initializable.rb:54:in
run_initializers'
from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/application.rb:136:in initialize!' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/railtie/configurable.rb:30:in
method_missing'
from /Users/danmitchell/Projects/LovePleasureStore/config/environment.rb:5:in <top (required)>' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/polyglot-0.3.3/lib/polyglot.rb:63:in
require'
from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/polyglot-0.3.3/lib/polyglot.rb:63:in require' from /Users/danmitchell/Projects/LovePleasureStore/config.ru:3:in
block in
instance_eval' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/builder.rb:51:in
initialize'new' from /Users/danmitchell/Projects/LovePleasureStore/config.ru:in
'eval' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/builder.rb:40:in
parse_file'app' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands/server.rb:46:in
app'wrapped_app' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.4.5/lib/rack/server.rb:254:in
start'start' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands.rb:55:in
block in <top (required)>'tap' from /Users/danmitchell/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.14/lib/rails/commands.rb:50:in
<top (required)>'require' from script/rails:6:in
'Hi,
do you plan to update your Spree Extensions for newer Version of Spree?
That would be awesome!
Best regards,
Manuel
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.