# 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.](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)
