> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upmind.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Use Contract Product Tags

> Tag, organise, and filter contract-based products.

Contract product tags help you organise and filter products easily within Upmind.

## **Adding tags from the products & services page**

1. Go to **Products & Services** in your admin dashboard.
2. Locate the contract product you want to tag.
3. Click **Add Tag** next to the product.

<Frame caption="Add tag from product & services">
  <img src="https://mintcdn.com/upmind/95CaOj_wxT0tRk9W/images/image-38.png?fit=max&auto=format&n=95CaOj_wxT0tRk9W&q=85&s=1c8efe70a06a39fdff4a358a0bc1d7c8" alt="Add tag from product & services" title="Image" className="mx-auto" style={{ width:"89%" }} width="1708" height="1468" data-path="images/image-38.png" />
</Frame>

4. Select an existing tag or create a new one by typing the desired tag name.

<Frame caption="Manage tag from product & services">
  <img src="https://mintcdn.com/upmind/bPO2bBzOxYQR4tYr/images/fb/f66832a081df9344.png?fit=max&auto=format&n=bPO2bBzOxYQR4tYr&q=85&s=643be6ee00d8255843864623de0083d9" alt="Manage tag from product & services" className="mx-auto" style={{ width:"75%" }} width="826" height="536" data-path="images/fb/f66832a081df9344.png" />
</Frame>

## Adding tags from inside a contract product

1. Go to **Products & Services**.
2. Open the contract product you want to tag.
3. Click **Add Tag** inside the product details.

<Frame caption="Add tag from contract product">
  <img src="https://mintcdn.com/upmind/95CaOj_wxT0tRk9W/images/image-39.png?fit=max&auto=format&n=95CaOj_wxT0tRk9W&q=85&s=d767f2d02829d0b6a7c07ed8571dad56" alt="Add tag from contract product" title="Image" className="mx-auto" style={{ width:"93%" }} width="2804" height="1012" data-path="images/image-39.png" />
</Frame>

4. Select an existing tag or create a new one.

<Frame caption="Contract product with tag">
  <img src="https://mintcdn.com/upmind/95CaOj_wxT0tRk9W/images/image-40.png?fit=max&auto=format&n=95CaOj_wxT0tRk9W&q=85&s=22528807e1c9a910e4220696d8d03ef6" alt="Contract product with tag" title="Image" className="mx-auto" style={{ width:"85%" }} width="2798" height="1048" data-path="images/image-40.png" />
</Frame>

## Displaying product tags on invoices

Product tags **do not** appear on invoices by default. To show a tag on an invoice, you need to enable this option when creating or editing the tag.

When creating or editing a tag, enable the option to show it to customers and on invoices. You can also set a colour for the tag. Use a bright colour, as it will be reflected on the invoice PDF.

<Frame caption="Customise tag">
  <img src="https://mintcdn.com/upmind/95CaOj_wxT0tRk9W/images/image-41.png?fit=max&auto=format&n=95CaOj_wxT0tRk9W&q=85&s=02de9960c446aa7948bd8272016214c8" alt="Customise tag" title="Image" className="mx-auto" style={{ width:"90%" }} width="1476" height="1468" data-path="images/image-41.png" />
</Frame>

The codes already exist in the PDF template, which can be accessed from **Settings** > **PDF Template**.

<Frame caption="Settings > PDF Template.">
  <img src="https://mintcdn.com/upmind/95CaOj_wxT0tRk9W/images/image-42.png?fit=max&auto=format&n=95CaOj_wxT0tRk9W&q=85&s=8552bac79f898dbeee9e4d9ab0a7029f" alt="Settings > PDF Template." title="Image" className="mx-auto" style={{ width:"96%" }} data-og-width="2798" width="2798" data-og-height="1190" height="1190" data-path="images/image-42.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/upmind/95CaOj_wxT0tRk9W/images/image-42.png?w=280&fit=max&auto=format&n=95CaOj_wxT0tRk9W&q=85&s=8cb4d0e339593a0dfba732db29a10e76 280w, https://mintcdn.com/upmind/95CaOj_wxT0tRk9W/images/image-42.png?w=560&fit=max&auto=format&n=95CaOj_wxT0tRk9W&q=85&s=07f08cd614b5b4b4cbdfc8d65a8fa131 560w, https://mintcdn.com/upmind/95CaOj_wxT0tRk9W/images/image-42.png?w=840&fit=max&auto=format&n=95CaOj_wxT0tRk9W&q=85&s=3c7e1c2b2e986decea971f245217f2f3 840w, https://mintcdn.com/upmind/95CaOj_wxT0tRk9W/images/image-42.png?w=1100&fit=max&auto=format&n=95CaOj_wxT0tRk9W&q=85&s=636346dd3b912730768db5f2351dc51e 1100w, https://mintcdn.com/upmind/95CaOj_wxT0tRk9W/images/image-42.png?w=1650&fit=max&auto=format&n=95CaOj_wxT0tRk9W&q=85&s=44eb535a0b8f4320eb09278c9b50d11e 1650w, https://mintcdn.com/upmind/95CaOj_wxT0tRk9W/images/image-42.png?w=2500&fit=max&auto=format&n=95CaOj_wxT0tRk9W&q=85&s=c6f34b871d023e56d4a012a7ec1b7134 2500w" />
</Frame>

**For the main product:**

```html theme={null}
{% if product.tags %}
    <br/><br/>
    {% for tag in product.tags %}
        <span class="rounded-l px-3 py-2 rounded-r product-tag" style="background: {{ tag.colour }}">{{ tag.name }}</span>
    {% endfor %}
{% endif %}
```

**For product options:**

```html theme={null}
{% if option.tags %}
    <br/><br/>
    {% for optionTag in option.tags %}
        <span class="rounded-l px-3 py-2 rounded-r product-tag" style="background: {{ optionTag.colour }}">{{ optionTag.name }}</span>
    {% endfor %}
{% endif %}
```

<Note>
  The tag will appear on the invoice when it is downloaded.
</Note>

<Frame caption="Invoice PDF">
  <img src="https://mintcdn.com/upmind/95CaOj_wxT0tRk9W/images/image-43.png?fit=max&auto=format&n=95CaOj_wxT0tRk9W&q=85&s=7449067fe64d2aa0e7ecdabb7b48f0a1" alt="Invoice PDF" title="Image" className="mx-auto" style={{ width:"96%" }} width="1482" height="1462" data-path="images/image-43.png" />
</Frame>
