Module: Spree

Defined in:
app/models/spree/calculator/distributed_amount.rb,
app/models/spree/promotion.rb,
app/models/spree/order_contents.rb,
app/models/spree/promotion_rule.rb,
app/models/spree/order_promotion.rb,
app/models/spree/line_item_action.rb,
app/models/spree/promotion_action.rb,
app/models/spree/promotion_finder.rb,
app/models/spree/promotion_chooser.rb,
app/models/spree/promotion_category.rb,
app/models/spree/promotion_rule_user.rb,
app/models/spree/promotion/rules/user.rb,
app/models/spree/promotion_advertiser.rb,
app/models/spree/promotion_code_batch.rb,
app/models/spree/promotion_rule_store.rb,
app/models/spree/promotion_rule_taxon.rb,
app/models/spree/calculator/flexi_rate.rb,
app/models/spree/promotion/rules/store.rb,
app/models/spree/promotion/rules/taxon.rb,
app/jobs/spree/promotion_code_batch_job.rb,
app/models/spree/promotion_handler/cart.rb,
app/models/spree/promotion_handler/page.rb,
app/helpers/spree/promotion_rules_helper.rb,
app/models/spree/promotion/rules/product.rb,
app/helpers/spree/admin/promotions_helper.rb,
app/models/spree/promotion_handler/coupon.rb,
app/models/spree/calculator/tiered_percent.rb,
app/models/spree/promotion/rules/nth_order.rb,
app/models/spree/promotion/rules/user_role.rb,
app/models/spree/promotion/rules/item_total.rb,
app/models/spree/promotion_handler/shipping.rb,
app/models/spree/calculator/tiered_flat_rate.rb,
app/models/spree/promotion/rules/first_order.rb,
app/mailers/spree/promotion_code_batch_mailer.rb,
app/models/spree/promotion/rules/option_value.rb,
app/models/spree/promotion/rules/user_logged_in.rb,
app/models/spree/calculator/percent_on_line_item.rb,
app/models/spree/promotion/actions/free_shipping.rb,
app/subscribers/spree/order_promotion_subscriber.rb,
app/models/spree/promotion/rules/minimum_quantity.rb,
app/models/spree/promotion/rules/one_use_per_user.rb,
app/models/spree/permission_sets/promotion_display.rb,
app/models/spree/calculator/flat_percent_item_total.rb,
app/models/spree/promotion/actions/create_adjustment.rb,
app/models/spree/permission_sets/promotion_management.rb,
app/models/spree/promotion/order_adjustments_recalculator.rb,
lib/controllers/backend/spree/admin/promotions_controller.rb,
app/models/spree/promotion/actions/create_item_adjustments.rb,
app/models/spree/promotion/rules/first_repeat_purchase_since.rb,
app/models/spree/promotion/actions/create_quantity_adjustments.rb,
lib/controllers/backend/spree/admin/promotion_codes_controller.rb,
lib/controllers/backend/spree/admin/promotion_categories_controller.rb,
lib/controllers/backend/spree/admin/promotion_code_batches_controller.rb

Overview

This is a calculator for line item adjustment actions. It accepts a line item and calculates its weighted adjustment amount based on the value of the preferred amount and the price of the other line items. More expensive line items will receive a greater share of the preferred amount.

Defined Under Namespace

Modules: Admin, PermissionSets, PromotionHandler, PromotionRulesHelper Classes: LineItemAction, OrderContents, OrderPromotion, OrderPromotionSubscriber, Promotion, PromotionAction, PromotionAdvertiser, PromotionCategory, PromotionChooser, PromotionCode, PromotionCodeBatch, PromotionCodeBatchJob, PromotionCodeBatchMailer, PromotionFinder, PromotionRule, PromotionRuleStore, PromotionRuleTaxon, PromotionRuleUser