> For the complete documentation index, see [llms.txt](https://halosoft.gitbook.io/ella-7-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://halosoft.gitbook.io/ella-7-documentation/theme-settings/global-features/cart-drawer.md).

# Cart Drawer

<figure><img src="/files/CLjOwpLkSu9I6dqwiySN" alt=""><figcaption></figcaption></figure>

To set up the **cart drawer** for your store, follow the steps below.

* From your Shopify admin, go to **Online Store ->** **Themes**.
* Find the theme that you want to edit, and then click **Customize**.
* Click **Theme settings ->** **Cart ->** Select Type **Drawer**

<figure><img src="/files/xm2g5RQ7yP9nxs8mDUeq" alt=""><figcaption></figcaption></figure>

In **Popup group ->** Add **Cart drawer**

<figure><img src="/files/8UFnh6qVdzN8TThA8beM" alt=""><figcaption></figcaption></figure>

#### Cart Drawer Setting

<figure><img src="/files/dNIa0ecilpXIHUVhNCjd" alt=""><figcaption></figcaption></figure>

### Configuration <a href="#user-content-configuration" id="user-content-configuration"></a>

| Label        | Type           | Description                                                                        | Visibility     |
| ------------ | -------------- | ---------------------------------------------------------------------------------- | -------------- |
| **Notice**   | `paragraph`    | To display your cart drawer, choose the cart type 'Drawer' in your theme settings. | Always visible |
| Collection   | `collection`   | Select a collection to display in the cart drawer when it is empty.                | Always visible |
| Color scheme | `color_scheme` | Choose the color scheme to apply to the cart drawer.                               | Always visible |

Inside the cart drawer, there are **two blocks** that allow you to configure the content displayed in the drawer:\
![](/files/whYskgAIwoTR7a6DUetv)

1. **Cart Product**
   * This block displays the products that have been added to the cart inside the cart drawer.\
     ![](/files/oSzbAkKbUi2l0fzuGDjk)<br>

     ### Cart Product Settings <a href="#user-content-general" id="user-content-general"></a>

     | Label        | Type       | Description                                                                                                                                                 | Visibility     |
     | ------------ | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- |
     | Gap          | `range`    | Adjust the spacing (in pixels) between individual product items within the cart list.                                                                       | Always visible |
     | Aspect ratio | `select`   | Select the visual proportion for product images. **Auto** adapts to the image, **Portrait** uses a tall format, and **Square** uses equal width and height. | Always visible |
     | Border       | `checkbox` | Enable this to display a subtle border separating each product item in the list.                                                                            | Always visible |
     | Vendor       | `checkbox` | Enable this to show the product's brand or manufacturer name above the product title.                                                                       | Always visible |

     ### &#x20;<a href="#user-content-padding" id="user-content-padding"></a>

     ### Padding <a href="#user-content-padding" id="user-content-padding"></a>

     | Label  | Type    | Description                                                      | Visibility     |
     | ------ | ------- | ---------------------------------------------------------------- | -------------- |
     | Top    | `range` | Set the internal spacing at the top of the product block.        | Always visible |
     | Bottom | `range` | Set the internal spacing at the bottom of the product block.     | Always visible |
     | Left   | `range` | Set the internal spacing on the left side of the product block.  | Always visible |
     | Right  | `range` | Set the internal spacing on the right side of the product block. | Always visible |
2. **Cart Popular Products**
   * This block displays an additional, customizable product block inside the cart drawer.

<figure><img src="/files/34XPenwUyWaj2R7gJ0AR" alt=""><figcaption></figcaption></figure>

## Cart Popular Products Settings <a href="#user-content-cart-popular-products-settings" id="user-content-cart-popular-products-settings"></a>

| Label         | Type         | Description                                                                                            | Visibility                             |
| ------------- | ------------ | ------------------------------------------------------------------------------------------------------ | -------------------------------------- |
| Title         | `text`       | Enter the heading text to be displayed above the popular products section (e.g., "You May Also Like"). | Always visible                         |
| Collection    | `collection` | Select a collection of products to recommend to customers in the cart drawer.                          | Always visible                         |
| Show products | `range`      | Set the number of products to display from the selected collection.                                    | Visible when "Collection" is not empty |
| Show arrows   | `checkbox`   | Enable this to display navigation arrows for scrolling through the recommended products.               | Visible when "Collection" is not empty |

#### Padding <a href="#user-content-padding" id="user-content-padding"></a>

| Label  | Type    | Description                                                                 | Visibility     |
| ------ | ------- | --------------------------------------------------------------------------- | -------------- |
| Top    | `range` | Set the internal spacing at the top of the popular products section.        | Always visible |
| Bottom | `range` | Set the internal spacing at the bottom of the popular products section.     | Always visible |
| Left   | `range` | Set the internal spacing on the left side of the popular products section.  | Always visible |
| Right  | `range` | Set the internal spacing on the right side of the popular products section. | Always visible |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://halosoft.gitbook.io/ella-7-documentation/theme-settings/global-features/cart-drawer.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
