# Cart

## Cart v checkout

The cart page represents the shopping basket that the customer intends to check out. The customer can add and remove products to review the price and then proceed to the checkout to provide payment and shipping details and place an order.

## Classic v drawer

All themes include a "classic" cart page, which can be accessed using the `/cart` path (e.g. [www.myshop.com/cart](http://www.myshop.com/cart)).

Some themes and third-party apps offer a drawer cart (also known as slide-out cart) which displays the content of the shopping cart to the customer using a pop-up on the current page, i.e. without navigating to the `/cart` path.

Discount Ninja is compatible with both types of cart pages.

## Theme edits

To support displaying discounted prices in the classic cart page and the drawer cart, you'll need to make the following edits:

* Mark the root (only for drawer cart)
* Cart item: item price, line price, quantity, text and built-in discounts
* Mark the subtotal
* Optionally remove the subtotal and use the Promotion Summary widget
* Optionally use the Promo Code Field widget

## Integration

To ensure proper integration with other apps that can be found on the cart page, please check the integration articles available [here](/discount-ninja-developer-hub/integration.md).

The integration articles include information regarding:

* Terms and conditions checkboxes
* Pickup + delivery apps
* Progress bar
* Order bumps


---

# 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://developers.discountninja.io/discount-ninja-developer-hub/theme-edits/code-edits/cart.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.
