> For the complete documentation index, see [llms.txt](https://docs.globo.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.globo.io/product-variant-swatch/display-on-product-page/inventory-alert-on-product-detail-page.md).

# Inventory alert on product detail page

## Demo

<figure><img src="/files/4KQdJppVVYwOyN0CuMPA" alt=""><figcaption><p>Demo</p></figcaption></figure>

## Step-by-step configurations

Display real-time stock quantity messages on your product pages to create urgency and keep customers informed. Follow this step-by-step guide to set it up in your store.

1. Navigate to the appearance page.
2. Click the set up button

In the Appearance list, you can select any style and click **Set Up**. The In Stock product message settings will be applied across all appearance types, so there's no need to configure each one separately.

<figure><img src="/files/xYxIHaN8u46NhUH5p21b" alt=""><figcaption></figcaption></figure>

3. In the **On product page** tab, scroll to the bottom to enable this function.

<figure><img src="/files/CQdap2QYdd0n16OXyCzr" alt=""><figcaption></figcaption></figure>

* You can change the in-stock message here.
* Use the variable `{number}`  to display the current stock quantity of variant selected

> This function works only on product page, not collection page.&#x20;

**💬 Need help?**

Email us at **📧 <contact@globo.io>** - we’re happy to assist!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.globo.io/product-variant-swatch/display-on-product-page/inventory-alert-on-product-detail-page.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
