# Add to cart on Frontend

**Add to cart success message**

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

Success message is displayed when a product is successfully added to the cart.

**Add to cart failed message**

<figure><img src="/files/8AlLFgVb4kj4giiDkrDE" alt=""><figcaption></figcaption></figure>

Failure message displayed when product is not added to the cart.

**Requested quantity not available error message**

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

Requested quantity not available message displayed when requested quantity of the product is not available.

**Proceed to Checkout**

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

Proceed to checkout after adding products to the cart

If anything goes wrong, please contact us at <support@magecomp.com>


---

# 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.magecomp.com/magento-2-quick-order-extension/add-to-cart-on-frontend.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.
