> 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/da/apps-integrations/shopify/online-store/cart-verification-script.md).

# Script til kurvverificering

Scriptet til kurvverificering hjælper med at forhindre ugyldige bookinger ved at tjekke aftalens tilgængelighed og antal i kurven, før kunden går til kassen.

Aftaler, der er tilføjet til kurven, kan blive utilgængelige, mens en kunde browser eller gennemfører checkout. En anden kunde kan booke den samme tid først, den [reservationsperiode](https://help.sesami.co/da/booking/availability/reservation-period.md) kan udløbe, eller det valgte antal er måske ikke længere tilgængeligt.

### Hvad kontrollerer scriptet til kurvverificering?

Scriptet validerer aftaler i kurven for at sikre, at:

* Den valgte aftaletid er stadig tilgængelig.
* Det valgte antal er gyldigt og tilgængeligt.
* Den [midlertidige reservation](https://help.sesami.co/da/booking/availability/reservation-period.md) for aftalen er ikke udløbet.

Hvis en aftale ikke længere er tilgængelig, eller det valgte antal er ugyldigt, forhindrer Sesami kunden i at gå til kassen, indtil problemet er løst.

### Hvad ser kunden?

Når Sesami registrerer en ugyldig aftale eller et ugyldigt antal i kurven, vises der en notifikation nederst på siden.

<figure><img src="https://151111902-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>

## Aktivér/administrér den

{% tabs %}
{% tab title="Online Store 2.0-temaer" %}
Scriptet til kurvverificering aktiveres via Sesami Theme App Extension. Sørg for, at den krævede Sesami-appblok er tilføjet og aktiveret i dit tema.

<figure><img src="https://151111902-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="Ældre temaer" %}
Temaer, der ikke understøtter app-udvidelser, kræver manuel integration i butiksfronten.

Scriptet til kurvverificering er inkluderet med [Sesamis manuelle integration](https://help.sesami.co/da/apps-integrations/shopify/online-store/manual-install.md)
{% endtab %}
{% endtabs %}

## Styling

Notifikationen for kurvverificering understøtter tilpasning af dens farver, skrifttyper og andre stylingmuligheder. Notifikationens tekst kan dog ikke ændres.

Se: “[Sådan tilpasser du stilarterne for scriptet til kurvverificering](https://help.sesami.co/da/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/da/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.
