# Quantity

Stockeo provides extensive options for managing how the quantity from the feed will affect the stock in your store. To change quantity settings, navigate to your **Stockeo Automations** → **Edit** the desired automation → scroll down to the **Data Mapping** section → hit the **gear icon** next to the field in which you typed the name of your supplier's feed quantity. More quantity settings will then appear.

<figure><img src="/files/sya16F6nOwEnowfh1XVD" alt="How to edit advanced quantity settings in the Stockeo app animated"><figcaption><p>Edit advanced quantity settings</p></figcaption></figure>

### Override vs Add

This option allows you to choose whether the feed quantity will overwrite your current stock or if the feed quantity will be added to the current stock.

<figure><img src="/files/ZiNiHufCkXyCwh4l5tXy" alt="Set whether you want to overwrite or add the feed quantity to the stock"><figcaption><p>Set whether you want to overwrite or add the feed quantity to the stock</p></figcaption></figure>

### Quantity formula

You can specify a formula in Liquid to calculate quantity based on the feed quantity.

<figure><img src="/files/TMygvAJDl05TmNeTyDoq" alt="Stockeo quantity formula rounding to full tens."><figcaption></figcaption></figure>

#### Round down to full tens

You can round quantity to full tens using the following formula:

```liquid
{{ quantity | divided_by: 10 | floor | times: 10 }}
```

#### Transform text to number

You can convert a descriptive stock level to a number. For example, the formula below turns *high* to 50, *low* to 10, and *out of stock* to 0.

```liquid
{%- case quantity -%}
{%- when "high" -%} 50
{%- when "low" -%} 10
{%- when "out of stock" -%} 0
{%- endcase -%}
```

#### Calculate with metafields

It's also possible to use a product or variant metafield in the quantity calculation.

* `product.metafields.namespace.key`
* `variant.metafields.namespace.key`

Let's assume you sell products in multipacks, and your provider tracks quantity of individual items. You can keep the multipack size in a variant metafield, and calculate the number of available multipacks with the following formula:

```liquid
{% assign multipack_size = variant.metafields.custom.multipack_size | default: 1 %}
{{ quantity | divided_by: multipack_size }}
```

### Low stock cut-off

In this field you can set the low stock cut-off. If the quantity in the feed is below or equal to the given value, your store's product quantity will be zeroed.<br>

<figure><img src="/files/d0cISHLmC24xtAcg32ly" alt="Stockeo low stock cut-off set to 10"><figcaption><p>Set the low stock cut-off</p></figcaption></figure>

### Reset missing SKUs

If this option is selected, the quantity of products whose SKUs are not present in the feed will be reset to zero. This will be applied to products matching filters.

<figure><img src="/files/1pHW66vus00Eg021efiH" alt="How to reset quantity of products whose SKUs are not present in the feed animated"><figcaption><p>Reset missing SKUs</p></figcaption></figure>

### Force inventory tracking if disabled

<figure><img src="/files/VwdrT7rsFCvYy7sG21Hx" alt="Force inventory tracking if disabled for processed variants"><figcaption><p>Force inventory tracking if disabled</p></figcaption></figure>

When this setting is enabled, if a processed variant has inventory tracking disabled, Stockeo will automatically turn it on.

<figure><img src="/files/xXaCTvx2I5dvdhQusvtr" alt="Enable the inventory tracking option in Shopify"><figcaption><p>Inventory tracking option in Shopify</p></figcaption></figure>

### Enable location if disabled

<figure><img src="/files/jbQboSchmOnwpcYGemSB" alt="Enable location if disabled - Stockeo"><figcaption><p>Enable location if disabled</p></figcaption></figure>

This option enables Stockeo to activate the location specified in the automation for a processed variant if that location is currently disabled.

<figure><img src="/files/TjijeYLYysVPwzEUM1GV" alt="Select location in Stockeo automation"><figcaption><p>Select location in Stockeo automation</p></figcaption></figure>

<figure><img src="/files/s6EOG7RzxXIsdswmyp4P" alt="Stockeo activates selected location"><figcaption><p>Enabling location in Shopify</p></figcaption></figure>

### Quantity format

#### Decimal separator

Comma or point. A comma is interpreted as a decimal separator only if followed by two digits to avoid ambiguity with a comma being used as a thousand separator.

The following notation will be ignored by Stockeo and will not update the stock of this product in your store.

<figure><img src="/files/4jgEquC3CbNxXnwgdFM3" alt="The notation with one or three decimal places that will be ingnored by Stockeo annotated"><figcaption><p>The comma notation of quantity that will be ingnored by Stockeo</p></figcaption></figure>

Shopify only allows quantity to be stored as an integer. When the quantity in the feed is a decimal number, it will be rounded in accordance with the mathematics.

<figure><img src="/files/44hRoDMTsZgOA8CeiJmz" alt="The notation with two decimal places that will be ingnored by Stockeo annotated"><figcaption><p>The comma notation of quantity that will be interpreted by Stockeo</p></figcaption></figure>

The above notation will update the stock to 3 and 4 respectively.

#### Approximate values

Sometimes in the feeds from some suppliers, there is a notation that the quantity of product is greater than a certain value. Stockeo then always sets the stock equal to this value, omitting the greater than and plus signs.

<figure><img src="/files/Z1ehxgoXr6HA41tirigs" alt="Different quantity notations in Stockeo for Shopify annotated"><figcaption><p>Different quantity notations handled by Stockeo</p></figcaption></figure>

All of the notations above are equivalent and will result in the following results:

<figure><img src="/files/5fnuXePpgAsHGhNal33X" alt="Quantity updated by Stockeo according to notations above annotated"><figcaption><p>Quantity updated by Stockeo according to the notations above</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.stockeo.solvenium.com/data-mapping/quantity-settings.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
