Installation

Updated 11 July 2026

This guide walks you through installing @webbycrown/medusa-quantity-pricing-rules on a Medusa v2 backend. Installation requires brief terminal access – share this guide with your developer if you use a hosted Medusa setup.

Prerequisites

Before installing, confirm your environment meets these requirements:

Step-by-Step

Install the package

Open a terminal in your Medusa backend project root (not your storefront):

npm install @webbycrown/medusa-quantity-pricing-rules

Or with yarn:

yarn add @webbycrown/medusa-quantity-pricing-rules
Register the plugin

Add the plugin to medusa-config.ts:

import { defineConfig } from "@medusajs/framework/utils"

export default defineConfig({
  plugins: [
    {
      resolve: "@webbycrown/medusa-quantity-pricing-rules",
      options: {},
    },
  ],
})

Warning Register the plugin under plugins only . Do not add a duplicate entry under modules – the pricingEngine module registers automatically.

Run migrations

The plugin creates the quantity_prices table:

npx medusa db:migrate
Start Medusa

Development:

npm run dev

Production:

npm run build
npm run start

Verify installation

Use this checklist to confirm everything works:

Environment variables

No plugin-specific environment variables are required. Your standard Medusa .env (including DATABASE_URL) is sufficient.

Upgrading

When a new version is released:

npm install @webbycrown/medusa-quantity-pricing-rules@latest
npx medusa db:migrate
npm run build

Restart Medusa and verify existing rules still appear in Admin.

Common installation issues

Post-installation checklist