# Document management in Lueira

> How to create document templates, link them to products and send them automatically to your customers for digital signature

## Document management in Lueira

### Document management in Lueira

## What are Documents?

The Documents feature lets you manage legal documents and contracts that your customers must sign. You can upload any PDF document, add dynamic fields to it (signature, name, date, etc.) and link it to your products so that it is sent automatically when an order paid by card in your online shop is confirmed, or manually from the order detail. For orders created from Admin, sending is manual by default, although you can enable automatic sending (see point 5).

👉 The digital signature is based on Documenso and complies with the eIDAS regulation framework. It currently uses a simple electronic signature (SES) level, which is legally valid in most use cases.

 

## Where are Documents?

Go to **Settings → Documents** to manage all your templates. From here you can create new templates, view the existing ones and edit them.

 

## Before you start: activate digital signature (one-time step)

The first time you enter **Settings → Documents**, you may see an activation screen instead of your templates. Before you can create or manage templates, each account must sign a document accepting that it is responsible for the content of the documents signed in it.

![](https://media.support.lueira.com/images/b4645984518abad7a3eee291ed8b9941.png)

To complete the activation:

1. Click **Review and sign**.
   ![](https://media.support.lueira.com/images/53527e6d750e8f82bcbf2ae7542d7156.png)
2. Review the document and complete it.
3. After signing, you will see "Activating digital signature…" while your account is being activated. There is no need to refresh the page: as soon as it finishes, the screen unlocks by itself and you see the usual template management (starting from point 1 of this guide).
   ![](https://media.support.lueira.com/images/d49167adbbd298f4b02f812b198fb104.png)

 

## 1. Create a document template

To create a new template:

- Click **Create document**

![](https://media.support.lueira.com/images/081c813ec564558892cf58bbd0219f12.png)

- Enter a **name** to identify the template internally
- Upload the **PDF file** you want to use as a base
- Click **Save**

👉 The file must be in PDF format. This will be the base document on which you will add the dynamic fields.

👉 In this same form you will see the selector **Who should sign this document?** (the customer, each participant, or both). We explain it in detail in point 2.

 

## 2. Who should sign the document?

Each document template defines who must sign it. When you create the template (or later, by opening it) you will see the selector **Who should sign this document?**, with three options:

- **The customer** (default) → only the person who placed the order signs, as before.
- **Each participant** → each participant on the order lines this template is linked to receives and signs their own document, not just the customer.
- **The customer and each participant** → the customer signs their document and, in addition, each participant signs theirs.

![](https://media.support.lueira.com/images/0ad615f1-d2f5-473e-b48f-8b8e3e53c1c4.png)

👉 Each signer receives their own document: if you choose **Each participant** and the order has 3 participants, 3 separate documents are generated (4 if the customer also signs).

**General settings for participants' documents**

In **Settings → Documents**, next to the automatic-sending switch, you will find two settings that apply to every template with participants. Each has an information icon with a short explanation. In the **Signature** column of the templates list you can see, at a glance, who signs each one.

![](https://media.support.lueira.com/images/b30e6cc8-7ee7-421d-9f13-ef792deee222.png)

- **Participants' documents** → who receives the documents each participant signs. **To the participant (or the customer if they are a minor)** (default) → if the participant has an email and is not a minor, they sign it themselves; otherwise the customer signs as guardian.
- **Always to the customer** → the customer always signs on behalf of every participant, whether or not they have an email and whether or not they are minors.

**Minimum age to sign** → the age, based on the participant's date of birth, from which they can sign their own document. Below that age the customer signs as guardian; if the participant has no date of birth on file, they are considered an adult. The default value is 18.

**When the customer signs instead of the participant**

With these settings, a participant's document is always sent to the customer, who signs as their guardian, when:

- The participant is a **minor** according to the minimum signing age configured above.
- The participant **has no email** on file.
- You have set **"Always to the customer"** in the "Participants' documents" setting, which makes all participants' documents always go to the customer, whether or not they have an email and whether or not they are minors.

 

## 3. Edit the template and add dynamic fields

Once the template is created, click it to open the **Documenso editor** integrated in Lueira. From here you can position the fields that the customer will have to fill in or sign:

- **Signature** → Legally valid (eIDAS regulation).
- **Email**
- **Name**
- **Initials**
- **Date**
- **Free text**
- **Number**
- **Checkbox**
- **Dropdown menu**
- **Radio button**

Drag the fields onto the document and place them where you want the customer to complete them. When you finish, save the changes.

👉 If the template has **Each participant** or **The customer and each participant** as the signer (see point 2), you can add a **Free text** field and type exactly one of these labels in its **Label** field, in the right-hand panel, so Lueira fills it in automatically with each signer's data: **participant_name**, **participant_birthdate**, **participant_document**, **customer_name**, **order_reference**, **activity**.

 

## 4. Link the template to products

Once the template is configured, you can associate it with one or more products. The document will be sent automatically to customers who book those products in your online shop and pay by card, and also in orders created from Admin if you enable automatic sending (see conditions in point 5).

You can link templates to the following types of products:

- Group products
- Private products
- Group product packs
- Rental products
- Rental packs

To link a template, go to the **product edit page** and find the **Document templates** field. From there, select the template or templates you want to associate with that product.

![](https://media.support.lueira.com/images/241749277dc86da4fc9553fc8982338d.png)

👉 A single product can have several templates linked, and a single template can be linked to several products.

 

## 5. Automatic sending when an order is confirmed

Lueira automatically sends the documents linked to the products in an order to the customer's email so they can complete and sign them. This happens:

- **Orders paid from the online shop** → when the customer completes the checkout in your shop and the card payment is confirmed.
- **Orders created from Admin** → only if you enable the switch described below. Otherwise, documents are sent manually (see point 6).

**"Send documents automatically in Admin orders" switch**

In **Settings → Documents**, above the list of templates, you will find this switch. Next to the title there is an information icon with a short explanation.
​

![Full-size preview](https://media.support.lueira.com/images/9a71c0ba98ea7b2e91b3a1532e0984d6.png)

- **Enabled** → documents are sent automatically to the customer when the order created from Admin receives its **first payment**.
- **Disabled** (default) → documents are not sent on their own: you send them manually from the **Documents** section of the order (see point 6).

👉 Automatic sending happens only once, with the first payment of the order. If you later record more payments or change the date of a payment, Lueira does not send the documents (nor the order confirmation email) to the customer again.

The customer receives an email with a link to access the document, fill in the fields and sign it from any device.

If the order includes several products with different documents, the customer will receive all the corresponding documents. If several products in the same order share the same template, the customer will receive a single document (no duplicates).

 

## 6. Manual sending from an order

From the order detail you can manually send the document templates linked to the products in that order. This is the usual way to send documents in orders created from Admin (unless you have enabled automatic sending) and it also lets you resend a document to the customer.

In the order detail you will find a **Send…** dropdown button that brings together all the sends to the customer. When you click it you will see the available options:

- **Email**
- **Forms**
- **Documents** → opens a modal where you choose whether to send all the documents linked to the order or select only some.
- **WhatsApp**

![](https://media.support.lueira.com/images/b966e7440d2c7b46c176135185765542.png)

The customer will receive the document just like in automatic sending: an email with a link to access, fill in and sign it.

👉 If the customer already had the document pending signature, manual sending sends them that same document again (a new one is not created).

 

## 7. Documents in the order detail

In the order detail view you have a **Documents** block that lists all the templates linked to the order and the status of each document sent. From there you can follow up without leaving the order.

When a template is signed by several signers (**Each participant** or **The customer and each participant**, see point 2), the block groups the documents by template and shows how many have already been signed, for example «2/3 signed». Within each template, each row corresponds to a signer and shows their name, their role (Customer or Participant) and, when the customer signs on a participant's behalf, the label «signs as guardian». From each row you can **copy the signing link** (while it is pending) or **send/resend** the email to that signer. If you change who signs a template, older documents that no longer match the current signers are still shown, so you don't lose the history.

Besides tracking by signer, Lueira also automatically tracks the status of each document. The possible statuses are:

- **Draft** → The document has been sent and is waiting for the signer's action

![](https://media.support.lueira.com/images/fb68eea8886786e0fb3b34e82b2a7820.png)

- **Completed** → The signer has signed and completed the document. In this status a **link to view the signed document** also appears, so you can check it from the order itself.

![](https://media.support.lueira.com/images/bce1eb70d8b5f722a6f5daa98932bcb4.png)

- **Rejected** → The signer has rejected the document. You can resend it from the order (see point 6); Lueira will delete the rejected document and create a new copy with a new signing link.

 

Source: https://help.lueira.com/en/articles/gestion-de-documentos-en-lueira
