Configure Inventory Management

The Inventory Management module supports inventory configuration settings at the product and global level and also provides additional settings that affect source availability, storefront products, and order shipment. The configuration settings apply to:

  • The whole catalog: Go to Stores > Settings > Configuration. Then, expand Catalog in the left panel and select Inventory.

  • Specific products: Go to Catalog > Products. Then, open the product in edit mode and click Advanced Inventory in the Sources section.

Your catalog can be configured to display inventory data in your storefront, manage active shopping carts, and more. Display the availability of each item as In Stock or Out of Stock and the available inventory when stock is low.

The out of stock threshold indicates when a product should be reordered, subtracts from the Salable Quantity for a stock, and can be set to support enabled or disabled backorders. Allow backorders for your store, setting a maximum quantity of orders for all or specific products.

Another way you can use the stock availability threshold is to manage products that are in high demand. If you want to capture new customers, rather than sell to high-quantity buyers, you can set a maximum quantity to prevent a single buyer from taking out your entire inventory.

Example of In Stock, Only 1 Left

Configuration options

Commerce stores and products support the following configurations for managing products, inventory, notifications and more. Commerce provides additional configuration settings for bulk actions and the Distance Priority algorithm.

Option Description
Manage Stock Enables Commerce to manage all inventory. Set if inventory control is used for this product or all products in Commerce. Displays more options when set to Yes.
Only X left Threshold Sets a quantity to notify when a specific amount is left available for purchase. This amount is tracked at the stock level.
Out-of-Stock Threshold Your Safety Stock, Quantity to trigger an Out of Stock notification and to mitigate the risk of stockouts. This value affects backorders. Options:
No Backorders: Does not accept backorders when product is out of stock.
Allow Qty Below 0: Accepts backorders when the quantity falls below zero.
Allow Qty Below 0 and Notify Customer: Accepts backorders when the quantity falls below zero, but notifies customers that orders can still be placed.

Backorders disabled: Entering a positive value over 0, such as 5 or 25, is recommended.
Backorders enabled: Enter a negative threshold for the maximum quantity of allowed backorders, such as -5 or -25. A value of 0 acts as infinite stock. A positive value is ignored and treated as 0.
Minimum Qty Allowed in Shopping Cart Sets the minimum quantity of the product that can be purchased in a single order.
Maximum Qty Allowed in Shopping Cart Sets the maximum quantity of the product that can be purchased in a single order.
Qty Uses Decimals Allows decimal amounts, instead of whole numbers, for the quantity of a product. This setting is helpful for products sold by weight, volume, or length. Specified on the level of Source, calculated on the Stock level based on assigned Sources.
Allow Multiple Boxes for Shipping Determines if parts of a product can be shipped separately.
Backorders Indicates if Backorders are allowed. Specified on the level of Source, calculated on the Stock level based on assigned Sources. If enabled to allow backorders, setting a negative value for the Out-of-Stock Threshold (see Configuring Backorders) is recommended. Options:
No Backorders: Does not accept backorders when product is out of stock.
Allow Qty Below 0: Accepts backorders when the quantity falls below zero.
Allow Qty Below 0 and Notify Customer: Accepts backorders when the quantity falls below zero, but notifies customers that orders can still be placed.
Notify for Quantity Below Sets the quantity that triggers a Quantity Below notification, warning of low stock. This amount is deducted from the Salable Quantity, not from the inventory Quantity.
Enable Qty Increments Determines if the product can be sold in quantity increments. If enabled, enter the quantity of products that must be purchased in an incremental step.
Automatically Return Credit Memo Item to Stock Inventory Management does not use this value. When you complete a return or a credit memo, the product quantity is automatically returned to the affected source quantity. See Configuring Product Options.

Configuration fall back and inheritance

Configurations override or apply in the following path of inheritance: Product Sources section overrides Product Advanced Options overrides global Inventory store configuration.

When Commerce checks for custom settings to apply, it follows this order:

  1. Checks for custom settings at the Product level in the Sources section. A few settings are available.

  2. Checks the Product Advanced Inventory settings.

  3. If Use Config Settings is selected for the product settings, it checks for a value from the global Inventory store configuration page.

For example, you could configure backorders differently across your store with a configuration similar to the following:

  • Globally: Enable backorders for the store, set Out-of-Stock Threshold to -50

  • Product: Disable backorders for a specific product, set Out-of-Stock Threshold to 10

On this page