Modifier: :qty
Product quantity. Write it after a colon: {Widget:5:qty}
About
The quantity ordered for a Product field. Compared against the whole modifier string, so it cannot be combined.
| Product | Gravity Forms |
|---|---|
| Requires | Gravity Forms 1.9 or later |
| Works on | Product fields |
| In the picker | What to show |
| Combining | Only works on its own: with any other modifier, it is ignored. |
How to use it
Say how many were ordered
Write
You ordered {Widget:9:qty} × {Widget:9.1}Get
You ordered 3 × WidgetExamples
Rendered by real Gravity Forms and GravityKit PHP against a test entry.
| Merge tag | Output |
|---|---|
{Widget:9:qty} | 3 |
Where the merge tag picker offers it
Form fields: Product.