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

# カート検証スクリプト

カート検証スクリプトは、顧客がチェックアウトに進む前に、カート内の予約可能状況と数量を確認することで、無効な予約を防ぐのに役立ちます。

カートに追加された予約は、顧客が閲覧中またはチェックアウト手続き中に利用できなくなる場合があります。別の顧客が先に同じ枠を予約することがあり、その [予約期間](https://help.sesami.co/ja/yu-yue/availability/reservation-period.md) が期限切れになるか、選択した数量が利用できなくなる場合があります。

### カート検証スクリプトは何を確認しますか？

このスクリプトは、カート内の予約を検証して、次のことを確認します。

* 選択した予約枠がまだ利用可能であること。
* 選択した数量が有効で、利用可能であること。
* その [仮予約](https://help.sesami.co/ja/yu-yue/availability/reservation-period.md) の有効期限が切れていません。

予約が利用できなくなっているか、選択した数量が無効な場合、Sesami は問題が解決されるまで顧客がチェックアウトに進むのを防ぎます。

### 顧客には何が表示されますか？

Sesami がカート内の無効な予約または数量を検出すると、ページ下部に通知が表示されます。

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

## 有効化／管理する

{% tabs %}
{% tab title="Online Store 2.0 テーマ" %}
カート検証スクリプトは、Sesami Theme App Extension を通じて有効化されます。必要な Sesami アプリブロックがテーマに追加され、有効になっていることを確認してください。

<figure><img src="https://1805722424-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="従来のテーマ" %}
アプリ拡張に対応していないテーマでは、ストアフロントへの手動統合が必要です。

カート検証スクリプトは次に含まれています [Sesami の手動統合](https://help.sesami.co/ja/apps-integrations/shopify/online-store/manual-install.md)
{% endtab %}
{% endtabs %}

## スタイル設定

カート検証の通知は、色、フォント、その他のスタイルオプションをカスタマイズできます。ただし、通知テキストは変更できません。

参照: 「[カート検証スクリプトのスタイルをカスタマイズする方法](https://help.sesami.co/ja/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/ja/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.
