summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/spree/admin/promotions/rules/_subscription_order_promotion_rule.html.erb0
-rw-r--r--config/locales/en.yml9
-rw-r--r--lib/solidus_subscriptions/engine.rb1
3 files changed, 7 insertions, 3 deletions
diff --git a/app/views/spree/admin/promotions/rules/_subscription_order_promotion_rule.html.erb b/app/views/spree/admin/promotions/rules/_subscription_order_promotion_rule.html.erb
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/app/views/spree/admin/promotions/rules/_subscription_order_promotion_rule.html.erb
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 50d32f8..820a406 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -12,6 +12,9 @@ en:
spree:
promotion_rule_types:
- subscription_promotion_rule:
- name: Subscription
- description: Order contains a subscription
+ subscription_promotion_rule:
+ name: Subscription
+ description: Order contains a subscription
+ subscription_order_promotion_rule:
+ name: Subscription Order
+ description: Order fulfills a subscription
diff --git a/lib/solidus_subscriptions/engine.rb b/lib/solidus_subscriptions/engine.rb
index 368a6a0..6f043ac 100644
--- a/lib/solidus_subscriptions/engine.rb
+++ b/lib/solidus_subscriptions/engine.rb
@@ -20,6 +20,7 @@ module SolidusSubscriptions
initializer 'register_subscription_promotion_rule', after: 'spree.promo.register.promotion.rules' do |app|
app.config.spree.promotions.rules << 'SolidusSubscriptions::SubscriptionPromotionRule'
+ app.config.spree.promotions.rules << 'SolidusSubscriptions::SubscriptionOrderPromotionRule'
end
def self.activate