---
schema_version: "1"
id: 4f8a01335136770bab318e580ba5aaf7563d9f21cb168202077400412d93854b
title: Create a Purchase Quantity Rule for a B2B Store
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/comm_products_qr_create_assign.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.comm_products_qr_create_assign.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: b0047fb1da0ff920d0aee6c6c062ba34acd185aef751e41f7c84ee3fb9de74da
description: You can define the minimum and maximum amounts of a product that a customer can buy and the number of products to add with each increase. You can assign a quantity rule to simple products and product variations. Because parent products aren’t sold, they don’t need quantity rules.
products:
  - Commerce
  - B2B Commerce
release: "264"
---
# Create a Purchase Quantity Rule for a B2B Store

You can define the minimum and maximum amounts of a product that a customer can buy and the number of products to add with each increase. You can assign a quantity rule to simple products and product variations. Because parent products aren’t sold, they don’t need quantity rules.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=commerce.comm_editions.htm&amp;language=en_US" target="_blank">View supported editions</a>.</td></tr></tbody></table>

[Which Salesforce Commerce Product Do I Have?](https://help.salesforce.com/s/articleView?id=commerce.comm_what_product.htm&language=en_US)

When creating a purchase quantity rule:

1. In the navigation sidebar, select a store from the **Store** dropdown.
2. Select **Merchandising** | **Products**.
3. Select a simple product or a product variation, and click its **Related** tab.
4. Next to Quantity Rules, click **Assign**.
5. Click in the **Quantity Rule** field, and select **New Quantity Rule**.
6. Enter the amounts. The minimum and maximum quantities must be multiples of the increment. For example, minimum 4, maximum 400, increment 2.
    
    - Minimum—The lowest quantity that a customer can buy.
    - Increment—The fixed number of items that are added to the selection when the customer adds more of the same product.
    - Maximum—The highest quantity that a customer can buy.
    
    You can define the quantity amounts as whole numbers up to one hundred million or, for B2B stores only, as fractions up to four decimal places. For example, for fractional quantities, you can add a minimum of 1.500, a maximum of 1000.5000, or an increment of 1.5000.
    
    Fractional quantities are visible when a buyer searches for a product, views the product’s details, and adds the quantity to the cart. Fractional quantities are available only with B2B store.
7. Name the quantity rule, and save your work.

The Cart Items, Product Detail Purchase Options, Quantity Selector, and Results Layout components have properties related to quantity rules. Use the properties to enter the display text for the quantity rule.