Salesforce Dictionary - Free Salesforce GlossarySalesforce Dictionary
Full Purchase Rules entry
How-to guide

Create a Purchase Quantity Rule for a B2B store

Create and assign a Purchase Quantity Rule so a B2B store enforces minimum, increment, and maximum order quantities for a product. Enable the related list first, then build the rule.

By Dipojjal Chakrabarti · Founder & Editor, Salesforce DictionaryLast updated Jun 16, 2026

Create and assign a Purchase Quantity Rule so a B2B store enforces minimum, increment, and maximum order quantities for a product. Enable the related list first, then build the rule.

  1. Add the Quantity Rule related list

    In Object Manager, open the Product object, edit the page layout, and add the Quantity Rule related list. This one-time step lets you assign rules to products.

  2. Open a sellable product

    In the Commerce app, go to Merchandising, then Products, and open a simple product or a product variation. Parent products are skipped because they are not sold directly.

  3. Assign a quantity rule

    On the Related tab, next to Quantity Rules, click Assign. Choose New Quantity Rule to build one inline, or select an existing named rule to reuse it.

  4. Enter the rule values

    Set the Minimum, Increment, and Maximum so all three are compatible multiples, give the rule a clear name, and save. The storefront Quantity Selector then shows and enforces these limits.

Minimumrequired

The lowest quantity a customer can buy. Must be a multiple of the increment.

Incrementrequired

The fixed number of items added each time the buyer increases the amount.

Maximumrequired

The highest quantity a customer can buy. Must be a multiple of the increment, up to one hundred million for whole numbers.

Namerequired

A descriptive label for the rule, such as Case of 12, used to identify and reuse it across products.

Gotchas
  • Minimum, increment, and maximum must be compatible multiples, or the rule will not save.
  • Assign rules to simple products and variations, not to parent products, which are not sold directly.
  • B2B stores allow fractional quantities up to four decimal places; B2C behavior differs, so confirm the store type.
  • Quantity rules control how many, not which products. Use entitlement policies to control what a buyer can see and purchase.

See the full Purchase Rules entry

Purchase Rules includes the definition, worked example, deep dive, related terms, and a quiz.