> For the complete documentation index, see [llms.txt](https://magecomp.gitbook.io/shopify/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://magecomp.gitbook.io/shopify/apps/quo-volume-discount-tier-price/total-quantiy-count.md).

# Total Quantiy Count

The quantity condition is calculated using **all products in the cart**, but the **discount is applied only to the selected product(s)**.

#### How It Works

1. Select one or more products in the **Select Product** section.
2. Set a **minimum quantity** (for example, 4).
3. When a customer’s **total cart quantity** reaches the set quantity, the discount is applied to the **selected product(s),** even if the quantity comes from other products.

#### Example

* You select **Product A** as the discounted product.
* You set **Quantity = 4**.
* A customer adds the following to the cart:
  * Product B × 2
  * Product C × 2

**Total quantity in cart = 4**

Even though **Product A is not part of the quantity count**, the discount will still be **applied to Product A** because the total cart quantity condition is met.

#### Key Points

* Quantity is calculated from **all products in the cart**
* Discount is applied **only to selected products**
* Helps promote specific products while encouraging larger carts

#### Best Use Case

* Offer discounts on **featured or high-margin products**
* Encourage customers to **add more items to their cart**
* Create bundle-style promotions without restricting product selection

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

#### **Customize – Total Cart Quantity Discount**

This section lets you **customize how the Total Cart Quantity Discount card looks and appears on your store**.

You can:

* Set the **title text**, color, and font weight
* Adjust **text size and colors** for the discount card
* Customize **product title and Add to Cart button** colors and text
* Choose whether to **show the card on all pages**
* Set a **delay time** for when the card appears after page load

The discount card displays **quantity-based offers** (for example, buy more items to get higher discounts) and helps encourage customers to add more products to their cart.

<figure><img src="/files/SBsT0ElHk4v7jdzfthhP" 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://magecomp.gitbook.io/shopify/apps/quo-volume-discount-tier-price/total-quantiy-count.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.
