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

# Bundles on your documents

> How Foliant prints bundles from Shopify Bundles, Simple Bundles and Fast Bundle as one row with what's in them, and how to list their items instead.

When a customer buys a bundle made with **Shopify Bundles**, **Simple Bundles** or **Fast Bundle**, Shopify doesn't record the bundle on the order as a line of its own. It records each item in it, linked to the bundle. Foliant puts them back together: your documents show the bundle the customer bought, with what's in it listed under it.

There's nothing to install or connect: Foliant recognises bundles on its own, on every plan.

## What prints

On an invoice, for example:

> **Breakfast kit** · SKU: KIT-1
> 2 × Mug · MUG-01
> 4 × Coffee beans · BEANS-250
> Price $26.00 · Qty 2 · Total $52.00

* The bundle prints as one row, with its own name, SKU and quantity.
* Its price is the items' prices added up, so your totals and taxes don't change.
* Under it, each item prints with how many are in the order and its SKU, so it's easy to pick and pack.
* On a packing slip, the quantity counts whole bundles, for example **2 of 2**.

A document printed for one shipment shows the bundle with what's in that shipment.

## List the items as their own lines instead

**Built-in templates in the code editor:** near the top of the template, change

```
{% assign SETTING_bundles = "bundle_row" %}
```

to `"components"`. Each item is then listed on its own line, as Shopify shows them.

**Visual editor:** select the **Items table** block and, under **Rows**, untick **Bundles as one row, with what's in them below**.

**Designs:** a design always prints a bundle as one row, with its items named under it.

## What stays item by item

So the numbers stay right, these keep listing each item in a bundle on its own:

* **Pick lists** and order summaries count the items to pick, not the bundles. See [Order summaries and pick lists](https://foliant-help.iforiti.com/templates/batch-templates-and-pick-lists.md).
* The [order data export](https://foliant-help.iforiti.com/exports/export-order-data.md) has a row for each item.
* E-invoices (ZUGFeRD, Peppol, KSeF) list each item with its own VAT rate.
* Shipping emails list each item in the shipment.
* A return form printed for one return lists each item coming back, since customers often return one item from a bundle.

## In your own Liquid

Every line item that's part of a bundle has these extra fields:

| Field | What it holds |
| - | - |
| `line_item.bundle_component` | `true` when the item is part of a bundle. |
| `line_item.bundle_title` | The bundle's name. |
| `line_item.bundle_quantity` | How many of this item come in one bundle. |

The `bundled` filter turns any list of the order's line items into one where each bundle is a single line:

```
{% assign line_items = line_items | bundled %}
{% for line_item in line_items %}
  {{ line_item.title }} × {{ line_item.quantity }}
  {% for component in line_item.components %}
    {{ component.quantity }} × {{ component.title }}
  {% endfor %}
{% endfor %}
```

A bundle's line has `line_item.is_bundle` set to `true`, the bundle's `title`, `sku` and `quantity`, its items' prices added up, and its items in `line_item.components`. Other lines are unchanged. `bundled_line_items` is the order's line items already bundled.

## Good to know

* Foliant recognises bundles that are put together at checkout: Shopify Bundles, Simple Bundles 2.0 and Fast Bundle's checkout bundles. Bundle apps that add the items to the order after it's placed (older Simple Bundles, Fast Bundle's "single product" mode) print the bundle and its items as separate lines.
* Templates you wrote yourself keep printing the items as they did until you add the `bundled` filter.

## Related articles

* [Product options apps (Bold, Infinite Options)](https://foliant-help.iforiti.com/templates/product-options-apps.md)
* [Line items in templates](https://foliant-help.iforiti.com/template-editor/liquid-line-items.md)
* [Order summaries and pick lists](https://foliant-help.iforiti.com/templates/batch-templates-and-pick-lists.md)
* [Editor overview](https://foliant-help.iforiti.com/template-editor/editor-overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.