# 2025-05-26: CE - New Cart Flexibility for Managing Line Items

## Overview

Further enhancements have been made to the management of items in the cart, with the aim of providing greater flexibility and control to you. By default, identical products are grouped into a single line item with an updated quantity. However, you now have the option to treat each item addition as a separate line item, enabling more advanced use cases such as promotions, varied delivery methods and custom pricing strategies.

## New features

| Feature                                      | Benefit                                                                                                                                                              |
| -------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **New `keepAsSeparateLineItem=true` option** | This function enables each addition of a product to be displayed as a separate line item, making it ideal for advanced use cases, like promotions buy 2, get 1 free. |
| **Default behavior (false) assumed**         | The `legalEntityId` is now embedded in the authorization token, ensuring secure and precise access to resources across the storefront..                              |

## Fixes and improvements

None as this is a new feature.

## Known problems

Quotes do not support separate line items yet.

## Documentation and links

* [Changelog](https://app.gitbook.com/s/T7xSS33IeCxcZw0eXU0D/changelog/2025/2025-05-26-separate-lines)
* [Cart Tutorial](/api-references/api-guides/checkout/cart/cart.md)


---

# 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://developer.emporix.io/release-notes/archive/2025/2025-05-26-separate-lines.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.
