> For the complete documentation index, see [llms.txt](https://docs.scaleflex.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scaleflex.com/portals/viewing-a-portal/sections/gallery/download-cart.md).

# Download cart

Visitors collect the assets they want and download them together, rather than one at a time.

Someone who needs eight images from a gallery shouldn't have to download eight times. The cart lets visitors gather what they want as they browse, then take it all in one go.

<figure><img src="https://2536208400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqsq2dR7Fjagf5eTifWZx%2Fuploads%2FPWCCLZEkfhfjB1hzZ2iC%2Fimage.png?alt=media&#x26;token=a1daa708-c4b3-42d0-9e3f-b90d3a287da2" alt="" width="375"><figcaption><p>The cart, holding the assets a visitor has gathered so far.</p></figcaption></figure>

## Adding assets

Visitors can add to the cart from a gallery card, with **Add all assets to cart**, or several at once by dragging across the gallery or shift-clicking a range — see [Selecting several at once](https://docs.scaleflex.com/portals/viewing-a-portal/sections/gallery.md#selecting-several-at-once). In **Folders** mode they can add whole folders too. Assets and media shown outside a gallery, in a full-screen lightbox, have their own **Add to cart** button there.

{% hint style="info" %}
**Add all assets to cart** takes up to **2,000 assets** at once. On a larger gallery the cart fills with the first 2,000 and says so — *First 2000 files added to cart* — rather than failing. A visitor who needs something further down should narrow the gallery with search or filters first.
{% endhint %}

Each time something is added, a confirmation appears at the top right:

> ✓ Added to cart · **View cart →**

<figure><img src="https://2536208400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqsq2dR7Fjagf5eTifWZx%2Fuploads%2FqyN1h6czIaqtOBKXpzxg%2Fimage.png?alt=media&#x26;token=32fa7d16-2b5c-4d10-9189-ae1dbc6ba1ae" alt="" width="375"><figcaption><p>The confirmation shown each time an asset is added.</p></figcaption></figure>

It shows briefly and then settles back into a small cart button carrying the number of assets collected so far. **View cart** opens the cart straight away, for visitors who are done rather than still browsing.

## The cart button

Once there is anything in the cart, the button stays at the top right of the page with its count, so visitors always know how much they have gathered. Selecting it opens the cart, where they can review what they collected and download the lot.

## Inside the cart

The cart is titled **Selected assets** with its count — **Selected folders** or **Selected items** when it holds folders. Each entry can be removed on its own, and **Clear all** empties it. Signed-in visitors on a gallery with sharing turned on also get **Share**, which turns the whole cart into a [share link](https://docs.scaleflex.com/portals/viewing-a-portal/share-links.md).

### Downloading

**Download** shows the number of entries and opens a short menu:

<figure><img src="https://2536208400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqsq2dR7Fjagf5eTifWZx%2Fuploads%2FGEWCD8Bci9KwZ4tAMxBX%2Fdownload-cart-01-download-menu.png?alt=media" alt="The cart&#x27;s Download menu with Original, Transformation and their CSV versions" width="436"><figcaption><p>The <strong>Download</strong> menu for a cart of images, with no variation picked.</p></figcaption></figure>

| Option                | Gives the visitor                                                                                                                                     |
| --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Original**          | The files as they are stored.                                                                                                                         |
| **Current variation** | Replaces **Original** while a **Variation** is picked in the gallery toolbar: every image in the rendition the visitor was looking at.                |
| **Transformation**    | Lets the visitor resize or convert the images before downloading. Offered only when the cart holds images and no folders.                             |
| … **(CSV)**           | The same choice as a CSV file of links instead of the files themselves — **Original (CSV)**, **Current variation (CSV)** or **Transformation (CSV)**. |

One download takes up to 2,000 files. If the cart holds more, only the first 2,000 are downloaded and a message says so; the rest stay in the cart for the next download.

## What the cart keeps

The cart follows visitors as they move between the pages of your Portal; they can gather assets from several galleries before downloading.

It is not saved, though:

* **Reloading the page** empties it.
* **Downloading** takes the downloaded entries out of it. A download that fails leaves everything in place, so the visitor can try again.
* **Signing in or out** empties it, since the assets someone may take depend on who they are.

## When the cart doesn't appear

The cart is used for downloading assets, so it follows the same permission. If **Allow assets for download** is turned off for a gallery in **View options**, the cart doesn't appear there at all: no cart button, no cart icon on hover and no **Add all assets to cart**.
