# Cart Layer

Show content on a modal after a product was added to the cart.

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

## Show complementary products via 8.SET

{% code overflow="wrap" %}

```html
<div data-8select-widget-id="8.SET" data-sku="insert-sku-of-currently-added-product" data-touchpoint="cart-layer"></div>
```

{% endcode %}

## Show similar items via 8.SIMILAR

{% code overflow="wrap" %}

```html
<div data-8select-widget-id="8.SIMILAR" data-sku="insert-sku-of-added-viewed-product" data-touchpoint="cart-layer"></div>
```

{% endcode %}

## Integration

1. when a product is added to the cart, add the widget element where you would like to show recommendation content including `data-sku`
2. call `_8select.initCSE()` to let the SDK discover the new widget


---

# Agent Instructions: 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:

```
GET https://docs.8select.io/widgets/touchpoints/cart-layer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
