# quantity-input script[type="application/json"]

> Quantity-break table applied to the configured price: each break's price applies from its min quantity (included) up to the next break.

Status: Ready (Smootify 2.0)  
URL: https://www.smootify.io/docs/reference/elements/quantity-input-script-type-application-json  
Updated: 2026-10-13

## At a glance

_The prices-by-quantity tool of this page builds a Webflow Code Embed from a table of quantities and prices, copied as a Webflow element: open the page in a browser to use it._ Each row is a quantity and the price of one item from that quantity on, such as 10 → 12.50 and 50 → 10.00: from 10 to 49 items one costs 12.50, from 50 on 10.00, below 10 the variant price. Paste it inside the `quantity-input` of the form.

More in [the guide](https://www.smootify.io/docs/features/product-configurator#3-prices-by-quantity).

`quantity-input script[type="application/json"]` is a **template**, read by [`configurator-input`](https://www.smootify.io/docs/reference/elements/configurator-input), [`configurator-checkbox`](https://www.smootify.io/docs/reference/elements/configurator-checkbox), [`configurator-radio`](https://www.smootify.io/docs/reference/elements/configurator-radio), [`configurator-select`](https://www.smootify.io/docs/reference/elements/configurator-select), [`configurator-dropdown`](https://www.smootify.io/docs/reference/elements/configurator-dropdown), [`configurator-popover`](https://www.smootify.io/docs/reference/elements/configurator-popover), [`configurator-dimension`](https://www.smootify.io/docs/reference/elements/configurator-dimension), [`configurator-file-input`](https://www.smootify.io/docs/reference/elements/configurator-file-input): it is never defined on its own.

## Where it can go

- **Inside** [`smootify-add-to-cart`](https://www.smootify.io/docs/reference/elements/smootify-add-to-cart).
- **Out of place,** it stays in the page and does nothing: read only when the add-to-cart has a configurator field.

## What it requires

Nothing beyond Smootify: it works on every plan.

## Attributes inside it

| Group | Attribute name | Values |
|---|---|---|
| [Quantity](https://www.smootify.io/docs/reference/attributes/quantity) | `data-action` | 2 |
