> For the complete documentation index, see [llms.txt](https://help.sesami.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.sesami.co/pt/apps-integrations/shopify/online-store/cart-verification-script.md).

# Script de verificação do carrinho

O Script de Verificação do Carrinho ajuda a evitar reservas inválidas ao verificar a disponibilidade e a quantidade das marcações no carrinho antes de o cliente prosseguir para o checkout.

As marcações adicionadas ao carrinho podem ficar indisponíveis enquanto um cliente navega ou conclui o checkout. Outro cliente pode reservar o mesmo horário primeiro, o [período de reserva](https://help.sesami.co/pt/reserva/availability/reservation-period.md) pode expirar, ou a quantidade selecionada pode já não estar disponível.

### O que verifica o Script de Verificação do Carrinho?

O script valida as marcações no carrinho para garantir que:

* O horário da marcação selecionado ainda está disponível.
* A quantidade selecionada é válida e está disponível.
* A [reserva temporária](https://help.sesami.co/pt/reserva/availability/reservation-period.md) da marcação ainda não expirou.

Se uma marcação já não estiver disponível ou a quantidade selecionada for inválida, o Sesami impede o cliente de prosseguir para o checkout até que o problema seja resolvido.

### O que vê o cliente?

Quando o Sesami deteta uma marcação ou quantidade inválida no carrinho, surge uma notificação na parte inferior da página.

<figure><img src="https://2464016170-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnDgiM1CWSLWRIbhORANO%2Fuploads%2Fw6CHoTiWlzzKMqmfxJNA%2FScreenshot%202026-11-06%20at%2010.51.15.png?alt=media&amp;token=89bd92b5-b3ab-4cfb-8b91-9b531739297f" alt=""><figcaption></figcaption></figure>

## Ativar/gerir

{% tabs %}
{% tab title="Temas da Loja Online 2.0" %}
O Script de Verificação do Carrinho é ativado através da Extensão da App para Temas do Sesami. Certifique-se de que o bloco de app do Sesami necessário é adicionado e ativado no seu tema.

<figure><img src="https://2464016170-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnDgiM1CWSLWRIbhORANO%2Fuploads%2FD0ovG3dlB5XXCv5wzdHO%2FScreenshot%202026-11-06%20at%2011.02.18.png?alt=media&amp;token=5d0e4642-16e0-402d-8ce6-0f57f7d89b73" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Temas vintage" %}
Os temas que não suportam extensões de app requerem integração manual na loja virtual.

O Script de Verificação do Carrinho está incluído com [Integração manual do Sesami](https://help.sesami.co/pt/apps-integrations/shopify/online-store/manual-install.md)
{% endtab %}
{% endtabs %}

## Estilização

A notificação do Script de Verificação do Carrinho suporta personalização das suas cores, fontes e outras opções de estilização. No entanto, o texto da notificação não pode ser modificado.

Consulte: “[Como personalizar os estilos do Script de Verificação do Carrinho](https://help.sesami.co/pt/apps-integrations/shopify/online-store/customize-cart-verification-script-styles.md)”.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.sesami.co/pt/apps-integrations/shopify/online-store/cart-verification-script.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
