Class: SolidusFriendlyPromotions::Conditions::DiscountedItemTotal
- Inherits:
-
ItemTotal
- Object
- Spree::Base
- SolidusFriendlyPromotions::Condition
- ItemTotal
- SolidusFriendlyPromotions::Conditions::DiscountedItemTotal
- Defined in:
- app/models/solidus_friendly_promotions/conditions/discounted_item_total.rb
Overview
A condition to apply to an order greater than (or greater than or equal to) a specific amount after previous promotions have applied
To add extra operators please override ‘self.operators_map` or any other helper method. To customize the error message you can also override `ineligible_message`.
Instance Method Summary collapse
Methods inherited from ItemTotal
#eligible?, operator_options, operators_map
Methods included from OrderLevelCondition
Methods inherited from SolidusFriendlyPromotions::Condition
#applicable?, #eligibility_errors, #eligible?, #level, #preload_relations, #updateable?
Instance Method Details
#to_partial_path ⇒ Object
11 12 13 |
# File 'app/models/solidus_friendly_promotions/conditions/discounted_item_total.rb', line 11 def to_partial_path "solidus_friendly_promotions/admin/condition_fields/item_total" end |