> For the complete documentation index, see [llms.txt](https://script-and-theory.gitbook.io/all-in-one-commerce-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://script-and-theory.gitbook.io/all-in-one-commerce-docs/checkout-blocks/blocks/line-item-content.md).

# Line Item Content

**Description:**

The Line Item Content block allows you to display custom messages specific to each line item in the checkout. This can be used for important information such as:

* Final Sale Notices (e.g., "This item is non-refundable.")
* Estimated Delivery Dates (e.g., "Expected delivery: 3-5 days.")
* Special Offers or Warnings (e.g., "Limited stock remaining.")

This helps keep customers informed while improving the checkout experience.

**How to Use:**

* Create the "Line item Content" block.<br>

  <figure><img src="/files/kjOozQ25lMp5rwfdIW1M" alt=""><figcaption></figcaption></figure>
* Enable the "Line item content blocks" option with in the "Line Item Edit & Upsell" block in the Blocks section.<br>

  <figure><img src="/files/9ogPLXdPqiuu8oS71aic" alt=""><figcaption></figcaption></figure>
* In the settings, activate the "Line Item Content Blocks" option.
* Enable the Line Item Content widget to display messages per line item.

**Configure different content types for each item:**

* Inline Text (e.g., "Ships in 24 hours.")
* Badge (e.g., "Final Sale")
* Tooltip (e.g., hover-over details)
* Modal (e.g., clickable link opening detailed info)
* The content will automatically display next to each line item in checkout.

**How to Enable:**

* Go into the store customizer<br>

  <figure><img src="/files/E2gBZqfOCit9Uw68d3Rs" alt=""><figcaption></figcaption></figure>
* On customizer select page "Checkout and customer accounts".<br>

  <figure><img src="/files/JPzoPzStdK7yBwzPMFMZ" alt=""><figcaption></figcaption></figure>
* Then you need to "add app block" and search extension "Line Item Edit & Upsell" and add it, also set the settings for this extension block and save button. **Check Screenshots**

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

* Customize the settings based on your store’s requirements.<br>

  <figure><img src="/files/iaSv2HphzJZLki8BtvV1" alt=""><figcaption></figcaption></figure>
* Enable the "Line item content blocks" option with in the "Line Item Edit & Upsell" block in the Blocks section.<br>

  <figure><img src="/files/9ogPLXdPqiuu8oS71aic" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://script-and-theory.gitbook.io/all-in-one-commerce-docs/checkout-blocks/blocks/line-item-content.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
