Skip to main content

Modifier :price

:price does different things on different tags and fields:

  • Choice price (unformatted) on Drop down, Radio buttons, Checkboxes, “Checkboxes, one choice”, Image choice, and Multiple choice fields, under What to show in the picker.
    Example: {Shirt Size:108:price} gives 1015.5. On the test form, this field is {Shirt Size:108} (Drop down).
  • Total as a plain number on Total fields, under What to show in the picker.
    Example: {Grand Total:127:price} gives 1234567.89. On the test form, this field is {Grand Total:127} (Total).

Choice price (unformatted)

Empty when the choices have no prices.

ProductGravity Forms
RequiresGravity Forms 1.9 or later
In the pickerWhat to show, for Drop down, Radio buttons, Checkboxes, “Checkboxes, one choice”, Image choice, and Multiple choice fields

Examples

Output from the real plugin code, run on a test entry.

Merge tagOutputWithout the modifier
{Toppings:6:price}2.5, 1Pepperoni, Mushroom

Works on

Form fields: Drop down · Radio buttons · Checkboxes · Checkboxes, one choice · Image choice · Multiple choice.

Total as a plain number

ProductGravity Forms
RequiresGravity Forms 2.4 or later
In the pickerWhat to show, for Total fields

Works on

Form fields: Total.