# Out of stock behavior

## What triggers a product to be out of stock?

In Shopify a product is considered out of stock when the inventory on a product is tracked, the setting "Continue selling when out of stock" is disabled and the inventory is 0 or negative. When a product matches this criteria the following settings, behaviors, and customer notifications can be configured in Smartrr.

### Out of stock (OOS) removal setting

The "Out of stock removal" setting is found on the **Subscription Programs > Transactions** page in the Smartrr admin.

<div align="left"><figure><img src="/files/2NYNgK0YKo12SMyTV8QB" alt=""><figcaption></figcaption></figure></div>

#### OOS removal setting enabled

When this setting is enabled, any out-of-stock items will be automatically moved to the customer's next order, while the rest of the shipment continues as planned. Customers will be notified via the **Customer Notifications > Item moved due to out of stock** email, and you will see a record in the subscription log.

{% hint style="info" %}
If the subscription only contain item(s) that are out of stock then the entire subscription will Pause and notify the customer to swap their item(s).
{% endhint %}

#### OOS removal setting disabled

When this setting is disabled, subscriptions containing these out of stock items will be automatically PAUSED to prevent missing items from subscription deliveries or transaction errors during billing. From the customer's account, a banner will appear in these instances, guiding customers on necessary actions to resume their subscription.

Customers will also receive an email notification informing them that their subscription has been paused. You can edit the contents of this email in your admin portal under **Customer Notifications > Subscription Paused.**

Customers will receive an email notification informing them of the update to their subscription. They'll also receive a corresponding “Item out of stock” email notification under **Customer Notifications > Item out of stock or deleted.**

**Note**: After inventory to out of stock products in Shopify is restored, subscriptions will be automatically re-activated.

{% hint style="info" %}
If you want to turn off the ability to allow new purchases on the product page when inventory is getting low but still allow subscription orders to process consider implementing [this solution](/docs/support/developer-documentation/adding-metafields-to-disable-add-to-cart-for-oos-products.md)
{% endhint %}


---

# 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.smartrr.com/docs/support/transactions/out-of-stock-behavior.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.
