> For the complete documentation index, see [llms.txt](https://docs.codpeller.com/en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codpeller.com/en/social-proof/product-guide/real-time-stats-messages/low-stock-counter.md).

# Low Stock Counter

This message shows how many items are left in stock

<div align="left"><figure><img src="https://content.gitbook.com/content/b8tXvs0XGg1dcXcoJqFy/blobs/ddRFy5xCOpVxpF5rPcyo/0.png" alt=""><figcaption><p>Fig. 18</p></figcaption></figure></div>

If it’s enabled, it will appear on the product page (see Fig. 18–19)

<figure><img src="https://content.gitbook.com/content/b8tXvs0XGg1dcXcoJqFy/blobs/tPKTj0bazaKHagDihLl6/1.png" alt=""><figcaption><p>Fig. 19</p></figcaption></figure>

### ⏱️ **Display Frequency**

You can choose how often the message is shown, from **0 to 100**:

* **100** = always shown
* **0** = never shown (see Fig. 20)

<figure><img src="https://content.gitbook.com/content/b8tXvs0XGg1dcXcoJqFy/blobs/sPTE0q3n3GLTzEr1qdFI/2.png" alt=""><figcaption><p>Fig. 20</p></figcaption></figure>

### 🔁 **Display Modes: Random or Real Data** (see Fig. 21)

<figure><img src="https://content.gitbook.com/content/b8tXvs0XGg1dcXcoJqFy/blobs/yPOcsZwyZ0L17D8CnKau/3.png" alt=""><figcaption><p>Fig. 21</p></figcaption></figure>

#### 🎲 **Random Mode**

If random mode is turned on, you’ll need to set a **range of numbers (from X to Y)**.\
The message will randomly pick a number from that range to show (see Fig. 22).

**Example:** *“Only 5 items left in stock!”*

<figure><img src="https://content.gitbook.com/content/b8tXvs0XGg1dcXcoJqFy/blobs/ZEmM4c56DKfTHd8tA39Z/4.png" alt=""><figcaption><p>Fig. 22</p></figcaption></figure>

#### 📊 **Real Data Mode**

To use real stock data from your store, turn **off** the random mode toggle (see Fig. 22.1)

<figure><img src="https://content.gitbook.com/content/b8tXvs0XGg1dcXcoJqFy/blobs/l9jVSWAjFeGpa5qpiXCw/5.png" alt=""><figcaption><p>Fig. 22.1</p></figcaption></figure>

Then, set the stock **threshold** — this means the message will only appear when the number of items left drops **below a certain amount** (see Fig. 23)

**Example:** If you set the threshold to **10**, the message will appear when stock reaches **9 or less**, and it will show the actual number in the message

<figure><img src="https://content.gitbook.com/content/b8tXvs0XGg1dcXcoJqFy/blobs/6t3KUfQZ8RQNOQQcDnLC/6.png" alt=""><figcaption><p>Fig. 23</p></figcaption></figure>

#### **🎨 Message Appearance**

You can fully customize the look of this message — text, colors, borders, icons, and more

{% content-ref url="/pages/QGYEfLlp3NezcLLc3EX6" %}
[Message Appearance](https://docs.codpeller.com/en/social-proof/product-guide/real-time-stats-messages/message-appearance.md)
{% endcontent-ref %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.codpeller.com/en/social-proof/product-guide/real-time-stats-messages/low-stock-counter.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
