> For the complete documentation index, see [llms.txt](https://docs.yoplanning.support/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yoplanning.support/en/yoplanning-academy/yoplanning-parametrage/parametrage-produit/gestion-des-ouvertures-et-fermetures-de-la-vente-en-ligne.md).

# Management of Online Sales Openings and Closings

### Feature description

Managing automatic opening and closing times for online sales allows you to define **when an activity is available for online booking** in Yoplanning.pro.

By default, you can:

* Set an **automatic shutdown X hours before the start** of an activity.

Optionally, with a specific module called **"Automatic Login"**, you can:

* Set an **automatic opening X hours before the start** of an activity.

This feature is essential for:

* Monitor registration deadlines.
* Avoid late bookings.
* Managing a delayed sales launch strategy.

{% hint style="info" %}
**These settings make the red shopping cart appear**

The settings described on this page control **when** an activity is sellable: it is a time window, calculated in relation to the start time of each session.

Outside of this window, the session is no longer sellable online — and therefore displays a **red shopping cart** on your schedule, exactly as if its **Online Selling** switch had been turned off. This is normal behavior: a shopping cart appearing on all your sessions a few hours before they start is due to this setting, not a configuration error.

📄 [The red shopping cart: why can't my session sell online?](https://docs.yoplanning.support/en/yoplanning-academy/yoplanning-au-quotidien/planning-et-indisponibilites-avec-yoplanning/le-caddie-rouge-session-non-vendable-en-ligne.md)
{% endhint %}

### Standard operation (without additional module)

#### What you can do by default

Without an additional module, you can only:

* Automatically close the online sale X hours before the start of a session.

It is not possible to manage a delayed opening without the **Auto Login** module.

### Steps to set up automatic closing

#### 1. Access the product page

1. From the left menu, click on **Products**.
2. Select the relevant product.
3. Click on the **Three small dots** menu in the top right corner.
4. Click on **Edit**.
5. Open the **Online Sales** section.

#### 2. Set automatic closing

In the field:

**Close sales X hours before the start**

* Enter a number of hours.
* Example :
  * If you enter **4**, the sale will be closed 4 hours before the start of the session.
  * If the session starts at 2:00 PM, the sale will close at 10:00 AM.

#### 3. Understanding the default behavior

* If the field is empty:
  * The sale remains open until the exact start time of the session.
* The closure happens automatically.
* No further manual adjustments are necessary.

#### 4. Continue selling after the service has begun

The field accepts a **negative value**. Entering **-2** keeps the online sale open for two hours **after** the start of the activity — useful for walk-through activities or staggered start times.

📄 [FAQ: Online Sales After Service Start](https://docs.yoplanning.support/en/faq/faq-pour-le-parametrage/faq-vente-en-ligne-apres-le-debut-de-la-prestation.md)

***

### Advanced feature: Automatic login

#### Required module: Automatic login

To activate an opening X hours before the start:

* You must request the installation of the **Automatic Login** module.
* Contact Yoplanning support to activate it for your team. (<support@yoplanning.com>)

#### Example of advanced use

With the module activated, you can:

* Leave all activities closed by default.
* They open automatically 24 hours before they start.

Example :

* Session scheduled for June 15th at 10am.
* Settings: open 24 hours in advance.
* The sale opens automatically on June 14th at 10am.

This allows:

* To create an effect of limited availability.
* To better manage the filling process.
* To avoid booking too far in advance.

### Common mistakes and solutions

#### The sale remains open for too long.

Common cause:

* The field "Close sales X hours before start" is empty.

Solution :

* Always check this setting when creating or modifying a product.

#### The automatic opening function is not working.

Possible cause:

* The **Automatic login** module is not enabled on your team.

Solution :

* Contact Yoplanning support.
* Request module activation.

#### Incorrect calculation of hours

Issue :

* Error in the number of hours entered.

Solution :

* Always check the exact session start time.
* Try it out in a future session.

#### The session is not sellable even though the window is open.

So it's not a time window issue. The session still shows a **red shopping cart**? Check the following, in order:

1. The **Online Sale** switch of the session, then that of its product.
2. The **price** of the session, if it is a price per session (without a price, online sales cannot be activated).
3. The **capacity** of the session → it may be full.

No red shopping cart and the customer still can't find the session? Check the product activation on the **booking engine** used by the customer.

📄 [The red shopping cart: why can't my session be sold online?](https://docs.yoplanning.support/en/yoplanning-academy/yoplanning-au-quotidien/planning-et-indisponibilites-avec-yoplanning/le-caddie-rouge-session-non-vendable-en-ligne.md)

### In summary

* By default, you can only **automatically close sales X hours before they start** (negative value = sale maintained after start).
* To manage an **automatic opening X hours before**, the **Auto Login** module is required.
* Outside of this window, the session displays a **red shopping cart** on the schedule, just like a session whose **Online Sale** switch is on No.
* Proper configuration improves your organization and the customer experience.

This feature allows you to maintain complete control over the availability of your online sales activities in Yoplanning.pro.

### Note: [Automatic AI-controlled online sales overnight for the following morning.](https://docs.yoplanning.support/en/yoplanning-academy/yoplanning-parametrage/parametrage-produit/gestion-des-ouvertures-et-fermetures-de-la-vente-en-ligne/controle-de-la-vente-en-ligne-des-activites-via-intelligence-artificielle.md)


---

# 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.yoplanning.support/en/yoplanning-academy/yoplanning-parametrage/parametrage-produit/gestion-des-ouvertures-et-fermetures-de-la-vente-en-ligne.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.
