Quantity Pricing Rules (@webbycrown/medusa-quantity-pricing-rules) is a Medusa v2 plugin that lets store owners and administrators configure volume-based and tiered pricing directly from Medusa Admin – without writing code for everyday pricing work.
Whether you sell wholesale, offer bulk discounts, or run B2B tier tables, this plugin helps you set “buy more, pay less” rules per product and optionally per variant.
What is quantity pricing?
Quantity pricing (also called volume pricing, tier pricing, or bulk pricing) means the unit price changes based on how many items a customer buys.
| Regular pricing | Quantity pricing |
|---|---|
1 unit = $100 always |
|
You define these tiers in Medusa Admin. The plugin stores them in your database and calculates the correct price when your storefront requests it.

Why use quantity pricing?
| Business need | How it helps |
|---|---|
Encourage larger orders |
Customers see savings as quantity increases |
Wholesale & B2B |
Publish transparent tier tables instead of manual quotes |
Clear slow inventory |
Steeper discounts at higher quantities |
Variant case pricing |
Different tiers per size, pack, or SKU |
Multi-currency stores |
Separate tier tables per currency |
Key features
Admin settings page
Settings → Extensions → Quantity Pricing
Product widget
Manage tiers on each product page (product ID pre-filled)
Store widget
Rule count summary on Settings → Store
Three pricing types
Fixed price, percentage discount, fixed amount off
Quantity ranges
Min/max quantities; empty max = open-ended (e.g. 51+)
Variant scoping
All variants or one specific variant
Multi-currency
One currency per rule (usd, inr, eur, etc.)
Customer groups & regions
B2B/regional rules via Admin API
Store API
List tiers and get calculated_price for any quantity
Auto cleanup
Rules removed when a product is deleted
How it works
- Install the plugin and run database migrations.
- Create quantity pricing rules in Medusa Admin (e.g. 11–50 units → $90 each).
- Rules are saved in the
quantity_pricestable. - Your storefront calls the Store API with product, variant, quantity, and currency.
- The plugin returns the matching unit price, line total, and rule ID.
- Your cart/checkout applies that price to the order line.
Note The plugin provides pricing calculation and Admin management. It does not automatically update cart line items – your storefront must call the Store API and apply the returned unit_price.
Common use cases
Wholesale pricing
Fixed price tiers at 10, 25, 50+ units
Bulk retail discounts
5+ save 10% (percentage tier)
B2B segment pricing
Customer group rules via API
Variant case pricing
48-pack variant only
Inventory clearance
Aggressive fixed tiers at high quantities
Multi-currency
Separate INR and USD tier tables
Requirements
| Requirement | Version |
|---|---|
Medusa |
v2.13+ ( |
Node.js |
20+ |
Database |
PostgreSQL |
Package |
1.0.1 |
Warning This plugin is for Medusa v2 only. It does not support Medusa v1.