# Display a short link on the cart

Displaying the file upload details in the cart page is a great way to assure your customers that they have uploaded the file correctly, and that you will receive it once they purchase the item. Follow the steps below to get started.

<figure><img src="https://1830227525-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FttS2ys9nVT4SeVSaGa3f%2Fuploads%2F3eV1rAJUesbRwcnlmw4T%2FUploadery_linktofile_as.png?alt=media&#x26;token=ad994389-39b7-4cee-9bf6-bad7b697cd88" alt=""><figcaption></figcaption></figure>

### Locate your theme's cart file

1\. Starting from your Shopify admin, click on **Online Store**, then click on **Themes.**

2\. Find the theme you want to edit, click the **Actions** ▼ button, then click **Edit code.**

<figure><img src="https://1830227525-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FttS2ys9nVT4SeVSaGa3f%2Fuploads%2Fgit-blob-fd8dcc2d0942a6d799d1702b9c6ab367baf1e283%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

3\. On the left side, under **Templates**, check to see if you have a **cart.liquid** file. If your theme's **cart.liquid** file doesn't contain much code, it may be pointing to a different file. In most cases, the code will be located in the **cart-template.liquid** file, within the **Sections** folder. Also, you can hover over the file's name and click on the right arrow ➡️ to view the different file.

If your theme does not have a **cart.liquid** file and if you see a **cart.json** file, locate a file called **main-cart-items.liquid** file in the **Sections** folder.

<figure><img src="https://1830227525-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FttS2ys9nVT4SeVSaGa3f%2Fuploads%2Fgit-blob-1fa1154d57f0dcd932f755c763b8466d86a754a8%2FUploadery_dispfileuploaddetails_AS.png?alt=media" alt=""><figcaption></figcaption></figure>

### Edit your theme's cart file

1\. If you have found a **cart.liquid** file or **cart-template.liquid** file in your theme, perform a search using keyboard shortcuts (Ctrl F or ⌘ F) for:

```html
if p.last contains '/uploads/'
```

If you have found a **main-cart-items.liquid** file in your theme, perform a search using keyboard shortcuts (Ctrl F or ⌘ F) for:

```html
{%- if property.last contains '/uploads/' -%}
```

2\. For the **cart.liquid** or **cart-template.liquid** file, highlight over the full line you found and the next two lines. Then, delete those three lines.

For the **main-cart-items.liquid** file, highlight over the full line you found and the next five lines. Then, delete those five lines.

<figure><img src="https://1830227525-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FttS2ys9nVT4SeVSaGa3f%2Fuploads%2Fgit-blob-f4616af19e4c6b97f7a7fd8a3612c0816e5e0eef%2FUploadery_MainCartItem_AS.png?alt=media" alt=""><figcaption></figcaption></figure>

3\. For the **cart.liquid** or **cart-template.liquid** file, copy and paste the following code snippet right where you just removed those three lines of code.

```html
{% if p.last contains '//uploadery.s3' %}
  <a href="{{ p.last }}">Link to your file</a>
{% else %}
```

For the **main-cart-items.liquid** file, copy and paste the following code snippet right where you just removed those three lines of code, as seen below:

```html
{%- if property.last contains '//uploadery.s3' -%}
  <a href="{{ property.last }}">Link to your file</a>
{%- else -%}
```

<figure><img src="https://1830227525-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FttS2ys9nVT4SeVSaGa3f%2Fuploads%2Fgit-blob-5dcde75dc8ead7b50f057898640a735e2a22da65%2FUploadery_MainCartLink_AS.png?alt=media" alt=""><figcaption></figcaption></figure>

3\. **Save** your changes.
