> 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, from the asset details view, or with **Add all assets to cart**.

{% 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.

## 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.

The cart is emptied when they sign in or out, 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 asset download** is turned off for a gallery in **View options**, visitors will not be able to download assets from the cart.
