> For the complete documentation index, see [llms.txt](https://docs.magecomp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.magecomp.com/magento-2-quick-order-extension/add-to-cart-on-frontend.md).

# Add to cart on Frontend

**Add to cart success message**

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FwKvgQANGpqyliODLVBfy%2Fimage.png?alt=media&amp;token=f1a9b8bd-f4d7-44d1-b8d0-1391aede8bfc" 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="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2F0x6XWMPiR6uYwaACI3ET%2Fimage.png?alt=media&amp;token=4af949d2-16fc-4a90-9e44-2ee69b28ed6b" alt=""><figcaption></figcaption></figure>

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

**Requested quantity not available error message**

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FmpMZw8oqaiQLzzOEoSMr%2Fimage.png?alt=media&amp;token=f0031fc8-5522-4359-b508-f9976717ee72" 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="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FliP8AlLVi6LK0vQVWBxr%2Fimage.png?alt=media&amp;token=7a29afca-91b7-4cd6-b28c-4620fa3eddcb" alt=""><figcaption></figcaption></figure>

Proceed to checkout after adding products to the cart

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