# SOS "Remaing Stock Does not Change"

The app already works on **variant level** by default.

However, your theme does **not update the product URL when a variant is selected**. Because of this, the app cannot detect which variant the customer clicks, so it shows the stock level of the **first available variant** for all selections.

In stores where the URL updates like this:\
`?variant=VARIANT_ID`\
the app can automatically detect the selected variant and show the correct stock count.

{% hint style="info" %}
You can see this working in our demo store:\
<https://minimateapps.myshopify.com/products/hey-bag-stock-zero>\
Password: **mini**

\
For example, when the **White** variant is selected, the URL becomes:\
`...?variant=48002203943212`
{% endhint %}

This behavior is also considered a best practice in e-commerce, as it allows customers to share a direct link to a specific variant.

{% hint style="success" %}
Some themes offer this as an optional setting. If you can enable it in your theme, the app will start working on variant level **automatically**, with no further setup needed.
{% 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://minimateapps.gitbook.io/hey-scarcity-low-stock/beginners-guide/sos-remaing-stock-does-not-change.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.
