Product price generator

Generates a price between min and max (inclusive).

commerce.price

Generator settings

Generate data to see results here.

Parameters & Example

Generates a price between min and max (inclusive).

commerce.price(options?: { min?, max?, dec?, symbol? })
options
An options object.
options.min
The minimum price. Defaults to 1.
options.max
The maximum price. Defaults to 1000.
options.dec
The number of decimal places. Defaults to 2.
options.symbol
The currency value to use. Defaults to ''.

Example

"668.35"

Use synthetic data in a test environment.

Related generators

Explore scenarios