# Date requirement

{% hint style="success" %}
**Requirements:**

* You must embed app to activate app
* For those who display widget on Cart page: You only can choose block Checkout button on Cart page
* For those who display widget on Product page: You only can choose block Add to card button on Product page
  {% endhint %}

{% hint style="warning" %}
TROUBLESHOOTING:

* Normally, you can use Automatic Block to block checkout button or add-to-cart button if customers don't select a date
* However, if it doesn't work (especially for custom theme) you need to use Manual Block by filling in Checkout button or Add-to-cart button CSS selector.
  {% endhint %}

## 1. Date requirement for Cart page

### Go to General settings > Checkout validation > Turn on this setting

<figure><img src="/files/93bCYilAF0WBzem4d3SX" alt=""><figcaption></figcaption></figure>

### On storefront:

#### Before-scenario: Customers don't select date & time ⇒ Block Checkout button

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

#### After-scenario: Customers select date & time ⇒ Open Checkout button ⇒ Direct buyers to Checkout page

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

{% hint style="warning" %}
**Be awared that:**

* If date is required for your business flow, **Buy it now button on product page is also disabled**&#x20;
* **Direct payment method (Paypal, Shopay,..) is also disabled**

**Disabling these button will help avoid bypassing case without selected date.**&#x20;
{% endhint %}

## 2. Date requirement for Product page&#x20;

### Go to General settings > Checkout validation > Turn on this setting

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

## On storefront:

#### Before-scenario: Customers don't select date & time ⇒ Block Add-to-cart button

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

#### After-scenario: Customers select date & time ⇒ Open Add to cart button ⇒ Direct buyers to Cart page

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


---

# 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.dingdoong.io/general-settings/general-settings/date-requirement.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.
