# Code edits

{% hint style="info" %}
**Limitations**

Shopify's App blocks have, unfortunately, limited support in the current Online Store 2.0 themes as of 2024. Specifically, Shopify does not support adding App blocks in collection page products, on drawer carts or in cart lines. This limits the amount of widgets that can currently be offered as App blocks.
{% endhint %}

## Available App blocks

The following table documents which widgets are available as App blocks:

| Page type    | Widget              | Available                                                             |
| ------------ | ------------------- | --------------------------------------------------------------------- |
| Product page | Product Page Banner | <mark style="color:green;background-color:blue;">App block</mark>     |
| Product page | Product Price       | <mark style="color:green;background-color:blue;">App block</mark> ¹ ² |
| Collection   | Collection Badge    | No                                                                    |
| Collection   | Collection Price    | No                                                                    |
| Cart         | Item Price          | No                                                                    |
| Cart         | Line Price          | No                                                                    |
| Cart         | Text                | No                                                                    |
| Cart         | Promotion Summary   | <mark style="color:green;background-color:blue;">App block</mark> ¹   |
| Cart         | Promo Code Field    | <mark style="color:green;background-color:blue;">App block</mark> ¹   |

¹ Support for positioning these App blocks depends on the theme.

² Available as of Q1 2025

## Code edits

The remaining widgets are supported using code edits. The Discount Ninja support team to provide this service for you free of charge.


---

# 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.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.
