> 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/chavo/vsplyvayushee-soobshenie-kto-to-kupil-tovar-s-kakoi-periodichnostyu-pokazyvaetsya.md).

# Всплывающее сообщение "кто-то купил товар" с какой периодичностью показывается?

Задается в настройках, и привязано ко времени

### **Алгоритм, следующий:**

#### **Рандом:**

Берем первые 100 товаров, и назначаем каждому товару свое время показа из интервала в настройках и случайные данные о покупке.

Далее выжидаем время начала показа, и запускаем бесконечный цикл: берем из выборки случайных товаров случайный товар и показываем его, ждем интервал который ему выпал и показываем следующий и т.д.

#### **Реальные данные:**

Получаем список товаров (из тех что реально купили в заданном интервале) и назначаем каждому товару свое время показа из интервала в настройках и реальные данные о покупке.

Далее выжидаем время начала показа, и запускаем бесконечный цикл: берем из выборки реальных товаров случайный товар и показываем его, ждем интервал который ему выпал и показываем следующий и т.д.

Если покупатель переходит от товара к товару т.е. Ecwid вызывает событие загрузки страницы, то весь процесс запускается заново. т.е. если в этот момент будут продажи, то при загрузке страницы товара они уже будут в новом списке


---

# 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/chavo/vsplyvayushee-soobshenie-kto-to-kupil-tovar-s-kakoi-periodichnostyu-pokazyvaetsya.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.
