Managing case quantity

## Overview
"Case quantity" settings let you manage inventory in bulk packaging without losing visibility into individual units. Enable these options in **Settings → General → Stock management** to expose case-specific controls for products and, if needed, for product variations. Use the base *Case quantity* toggle to work with cases on individual products, and turn on *Case quantity on product variations* when you also track different pack sizes inside a configurable (matrix) product.

## Case quantity
When *Case quantity* is enabled, every product gains case-related fields on the product editor. Use them to describe how the item is purchased and costed:
* **Case qty** – enter how many sellable units arrive in a single case. Leave blank or set to `0` if the product is not sold in cases.
* **Case cost** – optionally record the vendor cost for a full case. The regular *Cost* field continues to store the per-unit cost.
These values drive purchasing and inventory updates:
* When you receive a purchase order, the platform multiplies the received case count by the case quantity to update inventory with the correct number of individual units. If a case quantity is set, the system also prefers the *Case cost* when refreshing product costs from the purchase order
* Inventory history translates purchase order adjustments back into case counts, making it easy to confirm how many cases were received without doing the math yourself.
If you disable the setting again, existing data is preserved; the fields simply disappear from the editor until the option is re-enabled.
## Case quantity on product variations
Turn on *Case quantity on product variations* when a configurable product (matrix item) needs to keep a different pack size per child SKU. Enabling the setting automatically adds a reusable **Case quantity** product attribute that is flagged for variation matrices. You can then include this attribute when defining the variation axes so that each child product captures its own case size.
With both *Case quantity* settings active:
* Selecting the **Case quantity** attribute for a configurable product lets each variation store a specific `case_quantity` value in its additional data.
* Whenever stock is sold or adjusted on a child SKU, the system also adjusts the parent product by the child’s case size, keeping the parent inventory in sync with the number of individual units on hand.
This setup is ideal when you merchandise the same item in multiple pack sizes (for example, 6-pack, 12-pack, and single bottles) and need inventory roll-ups that understand how many individual bottles remain. Configure the parent product’s own **Case qty** to match your primary replenishment size so the matrix view reflects how many full cases are still available.
## Tips
* Keep the *Case qty* field up to date before receiving purchase orders—purchase order receipts use the value that is on the product at the time of receiving.
* If you do not track variations, enable only the base *Case quantity* toggle. The variation-specific option is additive and only necessary when you manage multiple pack sizes under a single configurable product.