> 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.

### 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.

***

### 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.

### In summary

* By default, you can only **automatically close sales X hours before they start**.
* To manage an **automatic opening X hours before**, the **Auto Login** module is required.
* 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.](/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 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.yoplanning.support/en/yoplanning-academy/yoplanning-parametrage/parametrage-produit/gestion-des-ouvertures-et-fermetures-de-la-vente-en-ligne.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.
