Skip to main content

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.

ProductGravity Forms
RequiresGravity Forms 1.9 or later
Works onProduct fields
In the pickerWhat to show
CombiningOnly 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 × Widget

Examples

Rendered by real Gravity Forms and GravityKit PHP against a test entry.

Merge tagOutput
{Widget:9:qty}3

Where the merge tag picker offers it

Form fields: Product.