Pricing Rules

Automate quote pricing with configurable rules.

Overview

Pricing rules automatically calculate discounts based on:

  • Order quantity
  • Order value
  • Customer group
  • Product categories
  • Customer history

Rule Configuration

Sales >B2B Quotes > Pricing Rules

Create New Rule

  1. Click "Add New Rule"
  2. Configure conditions
  3. Set discount action
  4. Save rule

Rule Structure

Basic Settings

FieldDescription
NameRule identifier
DescriptionRule purpose
StatusActive/Inactive
PriorityProcessing order (lower = first)
Store ViewsApplicable stores

Conditions

Define when the rule applies:

Condition TypeExample
QuantityIf qty >= 100
SubtotalIf subtotal >= 5000
Customer GroupIf group = Wholesale
CategoryIf product in category X
SKUIf SKU matches pattern

Actions

Define the discount:

Action TypeDescription
Percent OffPercentage discount off original price (by_percent)
Fixed OffFixed discount per unit (by_fixed)
To PercentAdjust price to X% of original (to_percent)
To Fixed PriceAdjust price to a fixed unit price (to_fixed)

Example Rules

Volume Discount

Name: Volume Discount 10% Condition: Quantity >= 50 Action: 10% discount

Wholesale Pricing

Name: Wholesale Tier Condition: Customer Group = Wholesale AND Subtotal >= 1000 Action: 15% discount

Category Discount

Name: Clearance Extra Discount Condition: Category = Clearance Action: Additional 5% off

Tiered Pricing

QuantityDiscount
10-495%
50-9910%
100-49915%
500+20%

Rule Priority

Rules are processed by priority:

  1. Lower number = higher priority
  2. First matching rule wins (by default)
  3. Can configure to stack discounts via b2bquote/pricing_rules/can_stack_rules

Rule Application

Automatic Application

When quote is reviewed:

  1. System evaluates conditions
  2. Matching rules are applied
  3. Prices are updated automatically

Manual Override

Admins can:

  • Override automatic pricing
  • Add additional discounts
  • Remove rule discounts

Rule Reports

Track rule effectiveness:

  • Usage Count: How often applied
  • Discount Given: Total discount amount
  • Affected Quotes: Quotes using rule

Best Practices

  1. Clear Naming: Use descriptive rule names
  2. Test Rules: Verify with sample quotes
  3. Set Priorities: Ensure correct processing order
  4. Regular Review: Update rules for business changes
  5. Document Logic: Keep records of pricing strategy

Screenshot placeholder: pricing rule editor (conditions/actions)
File: ./_screenshots/admin-pricing-rule.png

Found an issue with this documentation? Let us know